ci: Added room integration tests
This commit is contained in:
parent
0a31888257
commit
1d93328da9
49
.github/workflows/integration-test.yaml
vendored
49
.github/workflows/integration-test.yaml
vendored
@ -9,9 +9,56 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
|
||||
test-rooms:
|
||||
name: Rooms API Tests
|
||||
runs-on: ov-actions-runner
|
||||
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
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
- name: Run tests
|
||||
run: |
|
||||
./prepare.sh
|
||||
cd backend
|
||||
npm install
|
||||
npm run test:integration-rooms
|
||||
|
||||
test-recordings:
|
||||
name: Recording API Tests
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ov-actions-runner
|
||||
steps:
|
||||
- name: Checkout OpenVidu Local Deployment
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user