forked from OpenVidu/openvidu-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 1
177 lines (167 loc) · 5.83 KB
/
DeployOpenVidu.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
name: Deploy_OpenVidu
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
HelloWordTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Execute OpenVidu Dev container
run: docker run --detach=true -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-dev:2.24.0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Execute OpenVidu Tutorial Java Backend
run: mvn --no-transfer-progress --batch-mode spring-boot:run &
working-directory: ./openvidu-basic-java
- name: Execute http-server to serve static web
run: |
npm install --location=global http-server
http-server openvidu-hello-world/web &
working-directory: .
- name: Execute tests
run: mvn test --no-transfer-progress --batch-mode -Dtest="OpenViduHelloWordTest"
working-directory: ./Tests/OpenviduTests
- name: Upload TestNG report
uses: actions/upload-artifact@v2
with:
name: TestNG report
path: ./Tests/OpenviduTests/test-output/OpenViduHelloWordTestTestReport.html
if: always()
AngularTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Execute OpenVidu Dev container
run: docker run --detach=true -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-dev:2.24.0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Execute OpenVidu Tutorial Java Backend
run: mvn --no-transfer-progress --batch-mode spring-boot:run &
working-directory: ./openvidu-basic-java
- name: Execute Angular app in dev mode (ng-serve)
run: |
npm install
npx ng serve &
working-directory: ./openvidu-angular
- name: Execute tests
run: mvn test --no-transfer-progress --batch-mode -Dtest="OpenViduAngularTest"
working-directory: ./Tests/OpenviduTests
- name: Upload TestNG report
uses: actions/upload-artifact@v2
with:
name: TestNG report
path: ./Tests/OpenviduTests/test-output/OpenViduAngularTestReport.html
if: always()
javaScriptTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Execute OpenVidu Dev container
run: docker run --detach=true -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-dev:2.24.0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Execute OpenVidu Tutorial Java Backend
run: mvn --no-transfer-progress --batch-mode spring-boot:run &
working-directory: ./openvidu-basic-java
- name: Execute http-server to serve static web
run: |
npm install --location=global http-server
http-server openvidu-js/web &
working-directory: .
- name: Execute tests
run: mvn test --no-transfer-progress --batch-mode -Dtest="OpenViduJsTest"
working-directory: ./Tests/OpenviduTests
- name: Upload TestNG report
uses: actions/upload-artifact@v2
with:
name: TestNG report
path: ./Tests/OpenviduTests/test-output/OpenViduJsTestTestReport.html
if: always()
ReactTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Execute OpenVidu Dev container
run: docker run --detach=true -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-dev:2.24.0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Execute OpenVidu Tutorial Java Backend
run: mvn --no-transfer-progress --batch-mode spring-boot:run &
working-directory: ./openvidu-basic-java
- name: Execute React app in dev mode
run: |
npm install
npm start &
working-directory: ./openvidu-react
- name: Execute tests
run: mvn test --no-transfer-progress --batch-mode -Dtest="OpenViduReactTest"
working-directory: ./Tests/OpenviduTests
- name: Upload TestNG report
uses: actions/upload-artifact@v2
with:
name: TestNG report
path: ./Tests/OpenviduTests/test-output/OpenViduReactTestTestReport.html
if: always()
VueTest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Execute OpenVidu Dev container
run: docker run --detach=true -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-dev:2.24.0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Execute OpenVidu Tutorial Java Backend
run: mvn --no-transfer-progress --batch-mode spring-boot:run &
working-directory: ./openvidu-basic-java
- name: Execute Vue app in dev mode
run: |
npm install --legacy-peer-deps
npm run serve &
working-directory: ./openvidu-vue
- name: Execute tests
run: mvn test --no-transfer-progress --batch-mode -Dtest="OpenViduVueTest"
working-directory: ./Tests/OpenviduTests
- name: Upload TestNG report
uses: actions/upload-artifact@v2
with:
name: TestNG report
path: ./Tests/OpenviduTests/test-output/OpenViduVueTestTestReport.html
if: always()