ci: Update integration test workflow to ensure OpenVidu Meet readiness
This commit is contained in:
parent
d1205b82fd
commit
0250d00f7b
21
.github/workflows/integration-test.yaml
vendored
21
.github/workflows/integration-test.yaml
vendored
@ -2,7 +2,6 @@ name: Integration Tests
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
test-rooms:
|
test-rooms:
|
||||||
name: Rooms API Tests
|
name: Rooms API Tests
|
||||||
runs-on: ov-actions-runner
|
runs-on: ov-actions-runner
|
||||||
@ -43,8 +42,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
- name: Setup yarn # Needed for the redlock package
|
- name: Setup yarn # Needed for the redlock package
|
||||||
# run: npm install -g yarn
|
run: npm install -g yarn
|
||||||
# - name: Install wait-on
|
- name: Install wait-on
|
||||||
run: npm install -g wait-on
|
run: npm install -g wait-on
|
||||||
- name: Install LK CLI
|
- name: Install LK CLI
|
||||||
run: |
|
run: |
|
||||||
@ -56,8 +55,8 @@ jobs:
|
|||||||
cd backend
|
cd backend
|
||||||
npm install
|
npm install
|
||||||
npm run start:prod &
|
npm run start:prod &
|
||||||
# - name: Wait for OpenVidu Meet to Start
|
- name: Wait for OpenVidu Meet to Start
|
||||||
# run: wait-on --timeout 30000 http://localhost:6080
|
run: wait-on --timeout 30000 http://localhost:6080/meet/health
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
cd backend
|
cd backend
|
||||||
@ -113,8 +112,8 @@ jobs:
|
|||||||
node-version: '20'
|
node-version: '20'
|
||||||
- name: Setup yarn # Needed for the redlock package
|
- name: Setup yarn # Needed for the redlock package
|
||||||
run: npm install -g yarn
|
run: npm install -g yarn
|
||||||
# - name: Install wait-on
|
- name: Install wait-on
|
||||||
# run: npm install -g wait-on
|
run: npm install -g wait-on
|
||||||
- name: Install LK CLI
|
- name: Install LK CLI
|
||||||
run: |
|
run: |
|
||||||
curl -sSL https://get.livekit.io/cli | bash
|
curl -sSL https://get.livekit.io/cli | bash
|
||||||
@ -124,9 +123,9 @@ jobs:
|
|||||||
cd backend
|
cd backend
|
||||||
npm install
|
npm install
|
||||||
npm run start:prod &
|
npm run start:prod &
|
||||||
# - name: Wait for OpenVidu Meet to Start
|
- name: Wait for OpenVidu Meet to Start
|
||||||
# shell: bash
|
shell: bash
|
||||||
# run: wait-on --timeout 30000 http://localhost:6080
|
run: wait-on --timeout 30000 http://localhost:6080/meet/health
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
cd backend
|
cd backend
|
||||||
@ -140,5 +139,3 @@ jobs:
|
|||||||
report_paths: '**/reports/junit.xml'
|
report_paths: '**/reports/junit.xml'
|
||||||
fail_on_failure: true
|
fail_on_failure: true
|
||||||
require_tests: true
|
require_tests: true
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user