@@ -13,133 +13,115 @@ on:
13
13
workflow_dispatch :
14
14
15
15
jobs :
16
-
17
- prepare_openvidu_angular :
16
+ prepare_openvidu_components_angular :
18
17
name : Prepare openvidu-angular
19
18
runs-on : ubuntu-latest
20
19
steps :
21
- - env :
22
- COMMIT_MESSAGE : ${{ github.event.client_payload.commit-message }}
23
- COMMIT_REF : ${{ github.event.client_payload.commit-ref }}
24
- run : echo Commit openvidu-components-angular
25
- - uses : actions/setup-node@v4
26
- with :
27
- node-version : ' 20'
28
- - name : Build openvidu-browser
29
- env :
30
- BRANCH_NAME : ${{ github.event.client_payload.branch-name || 'master' }}
31
- run : |
32
- git clone -b ${BRANCH_NAME} --depth 1 https://github.com/OpenVidu/openvidu.git && \
33
- cd openvidu/openvidu-browser && \
34
- npm install && \
35
- npm run build && \
36
- npm pack && \
37
- cp openvidu-browser-*.tgz ../../ && \
38
- mv openvidu-browser-*.tgz ../openvidu-components-angular
20
+ - env :
21
+ COMMIT_MESSAGE : ${{ github.event.client_payload.commit-message }}
22
+ COMMIT_REF : ${{ github.event.client_payload.commit-ref }}
23
+ run : echo Commit openvidu-components-angular
24
+ - uses : actions/setup-node@v4
25
+ with :
26
+ node-version : ' 20'
39
27
40
- - name : Build openvidu-node-client
41
- run : |
42
- ls -al && \
43
- cd openvidu/openvidu-node-client && \
44
- npm install && \
45
- npm run build && \
46
- npm pack && \
47
- mv openvidu-node-client-*.tgz ../../
28
+ - name : Build openvidu-components-angular
29
+ run : |
30
+ git clone --depth 1 https://github.com/OpenVidu/openvidu openvidu && \
31
+ cd openvidu/openvidu-components-angular && \
32
+ npm install && \
33
+ npm run lib:build && \
34
+ npm run lib:pack && \
35
+ mv dist/openvidu-components-angular/openvidu-components-angular-*.tgz ../../
36
+ cd ../../ && \
37
+ rm -rf openvidu && \
38
+ ls -al
39
+ # tar -cvf artifacts.tar .
40
+ - uses : actions/upload-artifact@v4
41
+ with :
42
+ name : artifacts
43
+ path : ${{ github.workspace }}/**.tgz
44
+ if-no-files-found : error
48
45
49
- - name : Build openvidu-angular
50
- run : |
51
- cd openvidu/openvidu-components-angular && \
52
- npm install ../../openvidu-browser-*.tgz && \
53
- # npm install && \
54
- npm run lib:build && \
55
- mv dist/openvidu-angular/openvidu-angular-*.tgz ../../
56
- cd ../../ && \
57
- rm -rf openvidu && \
58
- ls -al
59
- # tar -cvf artifacts.tar .
60
- - uses : actions/upload-artifact@v4
61
- with :
62
- name : artifacts
63
- path : ${{ github.workspace }}/**.tgz
64
- if-no-files-found : error
46
+ # authentication_e2e_test:
47
+ # needs: prepare_openvidu_angular
48
+ # name: Authentication E2E tests
49
+ # runs-on: ubuntu-latest
50
+ # steps:
51
+ # - uses: actions/checkout@v4
52
+ # - uses: actions/setup-node@v4
53
+ # with:
54
+ # node-version: '20'
55
+ # - uses: actions/download-artifact@v4
56
+ # with:
57
+ # name: artifacts
58
+ # # - name: Run Selenium Chromedriver
59
+ # # run: docker run -d --shm-size="4g" --network host selenium/standalone-chrome:106.0
60
+ # - name: Run Browserless Chrome
61
+ # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.53-chrome-stable
62
+ # - name: Run openvidu-server-kms
63
+ # run: |
64
+ # docker run -p 4443:4443 --rm -d \
65
+ # -e OPENVIDU_SECRET=MY_SECRET \
66
+ # openvidu/openvidu-dev:latest
67
+ # - name: Install openvidu-angular and dependencies
68
+ # run: |
69
+ # ls -al && \
70
+ # npm install openvidu-angular-*.tgz --prefix openvidu-call-front && \
71
+ # npm install openvidu-browser*.tgz --prefix openvidu-call-front && \
72
+ # npm install openvidu-node-client-*.tgz --prefix openvidu-call-back
73
+ # - name: Build openvidu-call
74
+ # run: |
75
+ # npm run build --prefix openvidu-call-back && \
76
+ # npm run prod:build --prefix openvidu-call-front
77
+ # - name: Serve openvidu-call
78
+ # env:
79
+ # LAUNCH_MODE: CI
80
+ # CALL_OPENVIDU_CERTTYPE: selfsigned
81
+ # run: node openvidu-call-back/dist/app.js &
82
+ # - name: Run openvidu-call AUTH e2e
83
+ # run: npm run e2e:auth-ci --prefix openvidu-call-front
65
84
66
- e2e_test_with_authentication :
67
- needs : prepare_openvidu_angular
68
- name : Authentication E2E tests
85
+ videoconference_e2e_test :
86
+ needs : prepare_openvidu_components_angular
87
+ name : Videconference smoke E2E tests
69
88
runs-on : ubuntu-latest
70
89
steps :
71
- - uses : actions/checkout@v4
72
- - uses : actions/setup-node@v4
73
- with :
74
- node-version : ' 20'
75
- - uses : actions/download-artifact@v4
76
- with :
77
- name : artifacts
78
- # - name: Run Selenium Chromedriver
79
- # run: docker run -d --shm-size="4g" --network host selenium/standalone-chrome:106.0
80
- - name : Run Browserless Chrome
81
- run : docker run -d -p 3000:3000 --network host browserless/chrome:1.53-chrome-stable
82
- - name : Run openvidu-server-kms
83
- run : |
84
- docker run -p 4443:4443 --rm -d \
85
- -e OPENVIDU_SECRET=MY_SECRET \
86
- openvidu/openvidu-dev:latest
87
- - name : Install openvidu-angular and dependencies
88
- run : |
89
- ls -al && \
90
- npm install openvidu-angular-*.tgz --prefix openvidu-call-front && \
91
- npm install openvidu-browser*.tgz --prefix openvidu-call-front && \
92
- npm install openvidu-node-client-*.tgz --prefix openvidu-call-back
93
- - name : Build openvidu-call
94
- run : |
95
- npm run build --prefix openvidu-call-back && \
96
- npm run prod:build --prefix openvidu-call-front
97
- - name : Serve openvidu-call
98
- env :
99
- LAUNCH_MODE : CI
100
- CALL_OPENVIDU_CERTTYPE : selfsigned
101
- run : node openvidu-call-back/dist/app.js &
102
- - name : Run openvidu-call AUTH e2e
103
- run : npm run e2e:auth-ci --prefix openvidu-call-front
104
-
90
+ - uses : actions/checkout@v4
91
+ - uses : actions/setup-node@v4
92
+ with :
93
+ node-version : ' 20'
94
+ - uses : actions/download-artifact@v4
95
+ with :
96
+ name : artifacts
97
+ # - name: Run Selenium Chromedriver
98
+ # run: docker run -d --shm-size="4g" --network host selenium/standalone-chrome:106.0
99
+ - name : Run Browserless Chrome
100
+ run : docker run -d -p 3000:3000 --network host browserless/chrome:1.53-chrome-stable
101
+ - name : Run openvidu-local-deployment
102
+ run : |
103
+ git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
104
+ cd openvidu-local-deployment/community
105
+ ./configure_lan_private_ip_linux.sh
106
+ docker compose up -d
105
107
106
- e2e_test_without_authentication :
107
- needs : prepare_openvidu_angular
108
- name : No Authentication E2E tests
109
- runs-on : ubuntu-latest
110
- steps :
111
- - uses : actions/checkout@v4
112
- - uses : actions/setup-node@v4
113
- with :
114
- node-version : ' 20'
115
- - uses : actions/download-artifact@v4
116
- with :
117
- name : artifacts
118
- # - name: Run Selenium Chromedriver
119
- # run: docker run -d --shm-size="4g" --network host selenium/standalone-chrome:106.0
120
- - name : Run Browserless Chrome
121
- run : docker run -d -p 3000:3000 --network host browserless/chrome:1.53-chrome-stable
122
- - name : Run openvidu-server-kms
123
- run : |
124
- docker run -p 4443:4443 --rm -d \
125
- -e OPENVIDU_SECRET=MY_SECRET \
126
- openvidu/openvidu-dev:latest
127
- - name : Install openvidu-angular and dependencies
128
- run : |
129
- ls -al && \
130
- npm install openvidu-angular-*.tgz --prefix openvidu-call-front && \
131
- npm install openvidu-browser*.tgz --prefix openvidu-call-front && \
132
- npm install openvidu-node-client*.tgz --prefix openvidu-call-back
133
- - name : Build openvidu-call
134
- run : |
135
- npm run build --prefix openvidu-call-back && \
136
- npm run prod:build --prefix openvidu-call-front
108
+ - name : Install dependencies and build openvidu-call
109
+ run : |
110
+ npm install openvidu-components-angular-*.tgz --prefix openvidu-call-front && \
111
+ npm install --prefix openvidu-call-back && \
112
+ npm run build --prefix openvidu-call-back && \
113
+ npm run prod:build --prefix openvidu-call-front
137
114
138
- - name : Serve openvidu-call
139
- env :
140
- LAUNCH_MODE : CI
141
- CALL_PRIVATE_ACCESS : DISABLED
142
- CALL_OPENVIDU_CERTTYPE : selfsigned
143
- run : node openvidu-call-back/dist/app.js &
144
- - name : Run openvidu-call BASIC e2e
145
- run : npm run e2e:basic-ci --prefix openvidu-call-front
115
+ - name : Wait for openvidu-local-deployment
116
+ run : |
117
+ until curl -s -f -o /dev/null http://localhost:7880; do
118
+ echo "Waiting for openvidu-local-deployment to be ready..."
119
+ sleep 5
120
+ done
121
+ - name : Serve openvidu-call
122
+ env :
123
+ LAUNCH_MODE : CI
124
+ CALL_PRIVATE_ACCESS : false
125
+ run : node openvidu-call-back/dist/server.js &
126
+ - name : Run openvidu-call BASIC e2e
127
+ run : npm run e2e:basic-ci --prefix openvidu-call-front
0 commit comments