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 uses: ./.github/actions/setup-local-deployment
- name: Setup OpenVidu Call Backend - name: Setup OpenVidu Call Backend
uses: ./.github/actions/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 - name: Build and Serve openvidu-components-angular Testapp
uses: ./.github/actions/build-and-serve-components-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 - name: Run nested components E2E directives tests
env: env:
LAUNCH_MODE: CI LAUNCH_MODE: CI
@ -156,10 +146,9 @@ jobs:
if: always() if: always()
uses: ./.github/actions/cleanup uses: ./.github/actions/cleanup
webcomponent_e2e_directives: e2e_directives:
needs: test_setup needs: test_setup
name: Webcomponent directives name: API Directives Tests
if: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repository - name: Checkout Repository
@ -180,26 +169,12 @@ jobs:
uses: ./.github/actions/setup-local-deployment uses: ./.github/actions/setup-local-deployment
- name: Setup OpenVidu Call Backend - name: Setup OpenVidu Call Backend
uses: ./.github/actions/setup-openvidu-call-backend uses: ./.github/actions/setup-openvidu-call-backend
- name: Install dependencies - name: Build and Serve openvidu-components-angular Testapp
run: | uses: ./.github/actions/build-and-serve-components-testapp
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: Run Webcomponent E2E
env: env:
LAUNCH_MODE: CI 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 - name: Cleanup
if: always() if: always()
uses: ./.github/actions/cleanup uses: ./.github/actions/cleanup