forked from codeurjc-students/openvidu-tutorials-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 1.39 KB
/
openvidu-react-tutorial.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: openvidu-react
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.27.0 > results/logs/docker.log 2>&1 &
sleep 10
- name: Run server application sample
working-directory: openvidu-basic-node
run: |
npm install
node index.js > ../results/logs/node_index.log 2>&1 &
- name: Configurar Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Run the client application tutorial
working-directory: openvidu-react
run: |
npm install
npm start > ../results/logs/npm.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-react-web-tutorial.spec.js
- uses: actions/upload-artifact@v4
if: always()
with:
name: results-react
path: /home/runner/work/openvidu-tutorials-tests-playwright/openvidu-tutorials-tests-playwright/results/
retention-days: 30