ci: consolidate E2E test jobs and update test command in workflow
This commit is contained in:
parent
ac95ac3817
commit
9b54b7170c
269
.github/workflows/wc-e2e-test.yaml
vendored
269
.github/workflows/wc-e2e-test.yaml
vendored
@ -5,8 +5,8 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
e2e-room-functionality-test:
|
||||
name: E2E Room Functionality Tests
|
||||
e2e-tests:
|
||||
name: WebComponent E2E Tests
|
||||
runs-on: ov-actions-runner
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
@ -30,7 +30,7 @@ jobs:
|
||||
uses: OpenVidu/actions/start-openvidu-meet@main
|
||||
env:
|
||||
MEET_INITIAL_WEBHOOK_ENABLED: true
|
||||
MEET_INITIAL_WEBHOOK_URL: "http://localhost:5080/webhook"
|
||||
MEET_INITIAL_WEBHOOK_URL: 'http://localhost:5080/webhook'
|
||||
- name: Start OpenVidu Meet Testapp
|
||||
uses: OpenVidu/actions/start-openvidu-meet-testapp@main
|
||||
with:
|
||||
@ -41,7 +41,7 @@ jobs:
|
||||
# Install Playwright browsers
|
||||
mkdir -p /tmp/ms-playwright
|
||||
npx playwright install --with-deps chromium
|
||||
npm run test:e2e-core-room
|
||||
npm run test:e2e
|
||||
env:
|
||||
RUN_MODE: CI
|
||||
PLAYWRIGHT_BROWSERS_PATH: /tmp/ms-playwright
|
||||
@ -69,264 +69,3 @@ jobs:
|
||||
- name: Clean up
|
||||
if: always()
|
||||
uses: OpenVidu/actions/cleanup@main
|
||||
|
||||
e2e-events-functionality-test:
|
||||
name: E2E Events Functionality Tests
|
||||
runs-on: ov-actions-runner
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22.13'
|
||||
- name: Setup OpenVidu Local Deployment
|
||||
uses: OpenVidu/actions/start-openvidu-local-deployment@main
|
||||
with:
|
||||
ref-openvidu-local-deployment: development
|
||||
pre_startup_commands: |
|
||||
cat <<'BASH' > pre_startup_commands.sh
|
||||
#!/bin/bash
|
||||
echo "Commenting out openvidu-meet container in docker-compose.yaml"
|
||||
if [ -f docker-compose.yaml ]; then
|
||||
yq e 'del(.services.openvidu-meet)' -i docker-compose.yaml
|
||||
fi
|
||||
BASH
|
||||
chmod +x pre_startup_commands.sh && ./pre_startup_commands.sh
|
||||
- name: Setup OpenVidu Meet
|
||||
uses: OpenVidu/actions/start-openvidu-meet@main
|
||||
env:
|
||||
MEET_INITIAL_WEBHOOK_ENABLED: true
|
||||
MEET_INITIAL_WEBHOOK_URL: "http://localhost:5080/webhook"
|
||||
- name: Start OpenVidu Meet Testapp
|
||||
uses: OpenVidu/actions/start-openvidu-meet-testapp@main
|
||||
with:
|
||||
skip_checkout: 'true'
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd frontend/webcomponent
|
||||
# Install Playwright browsers
|
||||
mkdir -p /tmp/ms-playwright
|
||||
npx playwright install --with-deps chromium
|
||||
npm run test:e2e-core-events
|
||||
env:
|
||||
RUN_MODE: CI
|
||||
PLAYWRIGHT_BROWSERS_PATH: /tmp/ms-playwright
|
||||
- name: Upload test results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: events-test-results
|
||||
path: frontend/webcomponent/test-results/
|
||||
retention-days: 2
|
||||
- name: Upload TestApp logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: events-test-testapp-logs
|
||||
path: testapp/testapp.log
|
||||
retention-days: 2
|
||||
- name: Upload OpenVidu Meet logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: events-test-openvidu-meet-logs
|
||||
path: backend/meet_backend.log
|
||||
retention-days: 2
|
||||
- name: Clean up
|
||||
if: always()
|
||||
uses: OpenVidu/actions/cleanup@main
|
||||
|
||||
e2e-webhooks-functionality-test:
|
||||
name: E2E Webhooks Functionality Tests
|
||||
runs-on: ov-actions-runner
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22.13'
|
||||
- name: Setup OpenVidu Local Deployment
|
||||
uses: OpenVidu/actions/start-openvidu-local-deployment@main
|
||||
with:
|
||||
ref-openvidu-local-deployment: development
|
||||
pre_startup_commands: |
|
||||
cat <<'BASH' > pre_startup_commands.sh
|
||||
#!/bin/bash
|
||||
echo "Commenting out openvidu-meet container in docker-compose.yaml"
|
||||
if [ -f docker-compose.yaml ]; then
|
||||
yq e 'del(.services.openvidu-meet)' -i docker-compose.yaml
|
||||
fi
|
||||
BASH
|
||||
chmod +x pre_startup_commands.sh && ./pre_startup_commands.sh
|
||||
- name: Setup OpenVidu Meet
|
||||
uses: OpenVidu/actions/start-openvidu-meet@main
|
||||
env:
|
||||
MEET_INITIAL_WEBHOOK_ENABLED: true
|
||||
MEET_INITIAL_WEBHOOK_URL: "http://localhost:5080/webhook"
|
||||
- name: Start OpenVidu Meet Testapp
|
||||
uses: OpenVidu/actions/start-openvidu-meet-testapp@main
|
||||
with:
|
||||
skip_checkout: 'true'
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd frontend/webcomponent
|
||||
# Install Playwright browsers
|
||||
mkdir -p /tmp/ms-playwright
|
||||
npx playwright install --with-deps chromium
|
||||
npm run test:e2e-core-webhooks
|
||||
env:
|
||||
RUN_MODE: CI
|
||||
PLAYWRIGHT_BROWSERS_PATH: /tmp/ms-playwright
|
||||
- name: Upload test results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: webhooks-test-results
|
||||
path: frontend/webcomponent/test-results/
|
||||
retention-days: 2
|
||||
- name: Upload TestApp logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: webhooks-test-testapp-logs
|
||||
path: testapp/testapp.log
|
||||
retention-days: 2
|
||||
- name: Upload OpenVidu Meet logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: webhooks-test-openvidu-meet-logs
|
||||
path: backend/meet_backend.log
|
||||
retention-days: 2
|
||||
- name: Clean up
|
||||
if: always()
|
||||
uses: OpenVidu/actions/cleanup@main
|
||||
|
||||
e2e-ui-features-test:
|
||||
name: E2E UI Features Tests
|
||||
runs-on: ov-actions-runner
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22.13'
|
||||
- name: Setup OpenVidu Local Deployment
|
||||
uses: OpenVidu/actions/start-openvidu-local-deployment@main
|
||||
with:
|
||||
ref-openvidu-local-deployment: development
|
||||
pre_startup_commands: |
|
||||
cat <<'BASH' > pre_startup_commands.sh
|
||||
#!/bin/bash
|
||||
echo "Commenting out openvidu-meet container in docker-compose.yaml"
|
||||
if [ -f docker-compose.yaml ]; then
|
||||
yq e 'del(.services.openvidu-meet)' -i docker-compose.yaml
|
||||
fi
|
||||
BASH
|
||||
chmod +x pre_startup_commands.sh && ./pre_startup_commands.sh
|
||||
- name: Setup OpenVidu Meet
|
||||
uses: OpenVidu/actions/start-openvidu-meet@main
|
||||
env:
|
||||
MEET_INITIAL_WEBHOOK_ENABLED: true
|
||||
MEET_INITIAL_WEBHOOK_URL: "http://localhost:5080/webhook"
|
||||
- name: Start OpenVidu Meet Testapp
|
||||
uses: OpenVidu/actions/start-openvidu-meet-testapp@main
|
||||
with:
|
||||
skip_checkout: 'true'
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd frontend/webcomponent
|
||||
# Install Playwright browsers
|
||||
mkdir -p /tmp/ms-playwright
|
||||
npx playwright install --with-deps chromium
|
||||
npm run test:e2e-ui-features
|
||||
env:
|
||||
RUN_MODE: CI
|
||||
PLAYWRIGHT_BROWSERS_PATH: /tmp/ms-playwright
|
||||
- name: Upload test results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ui-features-test-results
|
||||
path: frontend/webcomponent/test-results/
|
||||
retention-days: 2
|
||||
- name: Upload TestApp logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ui-features-test-testapp-logs
|
||||
path: testapp/testapp.log
|
||||
retention-days: 2
|
||||
- name: Upload OpenVidu Meet logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ui-features-test-openvidu-meet-logs
|
||||
path: backend/meet_backend.log
|
||||
retention-days: 2
|
||||
- name: Clean up
|
||||
if: always()
|
||||
uses: OpenVidu/actions/cleanup@main
|
||||
|
||||
e2e-recording-access-test:
|
||||
name: E2E Recording Access Tests
|
||||
runs-on: ov-actions-runner
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22.13'
|
||||
- name: Setup OpenVidu Local Deployment
|
||||
uses: OpenVidu/actions/start-openvidu-local-deployment@main
|
||||
with:
|
||||
ref-openvidu-local-deployment: development
|
||||
pre_startup_commands: |
|
||||
cat <<'BASH' > pre_startup_commands.sh
|
||||
#!/bin/bash
|
||||
echo "Commenting out openvidu-meet container in docker-compose.yaml"
|
||||
if [ -f docker-compose.yaml ]; then
|
||||
yq e 'del(.services.openvidu-meet)' -i docker-compose.yaml
|
||||
fi
|
||||
BASH
|
||||
chmod +x pre_startup_commands.sh && ./pre_startup_commands.sh
|
||||
- name: Setup OpenVidu Meet
|
||||
uses: OpenVidu/actions/start-openvidu-meet@main
|
||||
env:
|
||||
MEET_INITIAL_WEBHOOK_ENABLED: true
|
||||
MEET_INITIAL_WEBHOOK_URL: "http://localhost:5080/webhook"
|
||||
- name: Start OpenVidu Meet Testapp
|
||||
uses: OpenVidu/actions/start-openvidu-meet-testapp@main
|
||||
with:
|
||||
skip_checkout: 'true'
|
||||
- name: Run tests
|
||||
run: |
|
||||
docker ps -a
|
||||
cd frontend/webcomponent
|
||||
# Install Playwright browsers
|
||||
mkdir -p /tmp/ms-playwright
|
||||
npx playwright install --with-deps chromium
|
||||
npm run test:e2e-recording-access
|
||||
env:
|
||||
RUN_MODE: CI
|
||||
PLAYWRIGHT_BROWSERS_PATH: /tmp/ms-playwright
|
||||
- name: Upload test results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: recording-access-test-results
|
||||
path: frontend/webcomponent/test-results/
|
||||
retention-days: 2
|
||||
- name: Upload TestApp logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: recording-access-test-testapp-logs
|
||||
path: testapp/testapp.log
|
||||
retention-days: 2
|
||||
- name: Upload OpenVidu Meet logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: recording-access-test-openvidu-meet-logs
|
||||
path: backend/meet_backend.log
|
||||
retention-days: 2
|
||||
- name: Clean up
|
||||
if: always()
|
||||
uses: OpenVidu/actions/cleanup@main
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user