openvidu-hello-world-test.spec.js #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: openvidu-js-tutorial-test | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Run OpenVidu deployment | |
run: | | |
docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-dev:2.29.0 > results/logs/openvidu_deployment.log 2>&1 & | |
sleep 10 | |
- name: Run server application sample | |
working-directory: openvidu-basic-node | |
run: | | |
npm install | |
node index.js > ../results/logs/server_application.log 2>&1 & | |
- name: Run the client application tutorial | |
run: | | |
sudo npm install --location=global http-server | |
sudo http-server openvidu-js/web > results/logs/client_application.log 2>&1 & | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install | |
- name: Install playwright-test | |
run: npm install @playwright/test | |
- name: Runing Test | |
working-directory: Tests/TutorialTests | |
run: | | |
npx playwright test openvidu-js-web-tutorial.spec.js | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: results-js | |
path: /home/runner/work/openvidu-tutorials-tests-playwright/openvidu-tutorials-tests-playwright/results/ | |
retention-days: 30 | |