ov-components: streamline E2E test setup by removing redundant steps and renaming jobs

master
Carlos Santos 2025-05-20 12:44:02 +02:00
parent 5df42d5344
commit ffc6bb4c41
1 changed files with 5 additions and 30 deletions

View File

@ -136,18 +136,8 @@ 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 and Serve openvidu-components-angular Testapp
uses: ./.github/actions/build-and-serve-components-testapp
- name: Wait for openvidu-components-angular Testapp
run: |
until curl -s -f -o /dev/null http://localhost:4200; do
echo "Waiting for openvidu-components-angular Testapp to be ready..."
sleep 5
done
- name: Run nested components E2E directives tests
env:
LAUNCH_MODE: CI
@ -156,10 +146,9 @@ jobs:
if: always()
uses: ./.github/actions/cleanup
webcomponent_e2e_directives:
e2e_directives:
needs: test_setup
name: Webcomponent directives
if: false
name: API Directives Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
@ -180,26 +169,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: Build and Serve openvidu-components-angular Testapp
uses: ./.github/actions/build-and-serve-components-testapp
- name: Run Webcomponent E2E
env:
LAUNCH_MODE: CI
run: npm run e2e:webcomponent-directives --prefix openvidu-components-angular
run: npm run e2e:lib-directives --prefix openvidu-components-angular
- name: Cleanup
if: always()
uses: ./.github/actions/cleanup