ci: Added stream tests

master
Carlos Santos 2025-05-21 13:15:30 +02:00
parent 35eacb45a1
commit 28e96647fa
1 changed files with 22 additions and 37 deletions

View File

@ -352,10 +352,9 @@ jobs:
if: always()
uses: ./.github/actions/cleanup
webcomponent_e2e_stream:
e2e_stream:
needs: test_setup
name: Webcomponent stream
if: false
name: Stream E2E
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
@ -376,26 +375,12 @@ jobs:
uses: ./.github/actions/setup-local-deployment
- name: Setup OpenVidu Call Backend
uses: ./.github/actions/setup-openvidu-call-backend
- name: Install dependencies
run: |
cd openvidu-components-angular
npm install
- name: Build openvidu-angular
run: npm run lib:build --prefix openvidu-components-angular
- name: Build openvidu-webcomponent
run: npm run webcomponent:testing-build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Wait for openvidu-components-angular Testapp
run: |
until curl -s -f -o /dev/null http://localhost:8080; do
echo "Waiting for openvidu-components-angular Testapp to be ready..."
sleep 5
done
- name: Run Webcomponent E2E
- name: Build and Serve openvidu-components-angular Testapp
uses: ./.github/actions/build-and-serve-components-testapp
- name: Run Tests
env:
LAUNCH_MODE: CI
run: npm run e2e:webcomponent-stream --prefix openvidu-components-angular
run: npm run e2e:lib-stream --prefix openvidu-components-angular
- name: Cleanup
if: always()
uses: ./.github/actions/cleanup