-
Notifications
You must be signed in to change notification settings - Fork 96
82 lines (72 loc) · 2.02 KB
/
integration-test.yaml
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
name: Integration Tests
on:
push:
branches:
- next
pull_request:
branches:
- next
jobs:
embedded_auth_tests:
name: Embedded Auth API
runs-on: ubuntu-latest
steps:
- name: Checkout OpenVidu Local Deployment
uses: actions/checkout@v4
with:
repository: OpenVidu/openvidu-local-deployment
ref: development
path: openvidu-local-deployment
- name: Configure Local Deployment
shell: bash
run: |
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Wait for OpenVidu Local Deployment to Start
shell: bash
run: |
MAX_WAIT_SECONDS=60
SECONDS=0
until curl -s -f -o /dev/null http://localhost:7880; do
if [ $SECONDS -gt $MAX_WAIT_SECONDS ]; then
echo "OpenVidu Local Deployment did not start in $MAX_WAIT_SECONDS seconds"
exit 1
fi
echo "Waiting for openvidu-local-deployment to be ready ..."
sleep 5
SECONDS=$((SECONDS+5))
done
echo "OpenVidu Local Deployment started in $SECONDS seconds"
- uses: actions/checkout@v4
with:
ref: next
path: openvidu-call
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run openvidu-call backend
run: |
cd openvidu-call
./prepare.sh
cd backend
npm install
npm run test:embedded-auth-api
openvidu_webhook_tests:
name: OpenVidu Webhooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: next
path: openvidu-call
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run openvidu-call backend
run: |
cd openvidu-call
./prepare.sh
cd backend
npm install
npm run test:integration-webhooks