ci: update integration test workflow to use main branch and streamline job steps

This commit is contained in:
Carlos Santos 2025-04-23 14:02:10 +02:00
parent e0a74b4446
commit 82c0241227

View File

@ -1,64 +1,59 @@
# name: Integration Tests name: Integration Tests
# on: on:
# push: push:
# branches: branches:
# - next - main
# pull_request: pull_request:
# branches: branches:
# - next - main
# jobs: jobs:
# embedded_auth_tests: test-recordings:
# name: Embedded Auth API name: Recording API Tests
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - name: Checkout OpenVidu Local Deployment - name: Checkout OpenVidu Local Deployment
# uses: actions/checkout@v4 uses: actions/checkout@v4
# with: with:
# repository: OpenVidu/openvidu-local-deployment repository: OpenVidu/openvidu-local-deployment
# ref: development ref: development
# path: openvidu-local-deployment path: openvidu-local-deployment
# - name: Configure Local Deployment - name: Configure Local Deployment
# shell: bash shell: bash
# run: | run: |
# cd openvidu-local-deployment/community cd openvidu-local-deployment/community
# ./configure_lan_private_ip_linux.sh ./configure_lan_private_ip_linux.sh
# docker compose up -d docker compose up -d
# - name: Wait for OpenVidu Local Deployment to Start - name: Wait for OpenVidu Local Deployment to Start
# shell: bash shell: bash
# run: | run: |
# MAX_WAIT_SECONDS=60 MAX_WAIT_SECONDS=60
# SECONDS=0 SECONDS=0
# until curl -s -f -o /dev/null http://localhost:7880; do until curl -s -f -o /dev/null http://localhost:7880; do
# if [ $SECONDS -gt $MAX_WAIT_SECONDS ]; then if [ $SECONDS -gt $MAX_WAIT_SECONDS ]; then
# echo "OpenVidu Local Deployment did not start in $MAX_WAIT_SECONDS seconds" echo "OpenVidu Local Deployment did not start in $MAX_WAIT_SECONDS seconds"
# exit 1 exit 1
# fi fi
# echo "Waiting for openvidu-local-deployment to be ready ..." echo "Waiting for openvidu-local-deployment to be ready ..."
# sleep 5 sleep 5
# SECONDS=$((SECONDS+5)) SECONDS=$((SECONDS+5))
# done done
# echo "OpenVidu Local Deployment started in $SECONDS seconds" echo "OpenVidu Local Deployment started in $SECONDS seconds"
# - uses: actions/checkout@v4 - uses: actions/checkout@v4
# with: - name: Setup Node.js
# ref: next uses: actions/setup-node@v4
# path: openvidu-meet with:
node-version: '20'
# - uses: actions/setup-node@v4 - name: Run tests
# with: run: |
# node-version: '20' ./prepare.sh
cd backend
# - name: Run openvidu-meet backend npm install
# run: | npm run test:integration-recordings
# cd openvidu-meet
# ./prepare.sh
# cd backend
# npm install
# npm run test:embedded-auth-api
# openvidu_webhook_tests: # openvidu_webhook_tests:
# name: OpenVidu Webhooks # name: OpenVidu Webhooks