Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E new test #459

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ packages/millicast-publisher-demo
packages/millicast-viewer-demo
packages/millicast-chromecast-receiver
packages/millicast-multiview-demo
packages/millicast-sdk/integration-tests
/**/src/*.worker.js
/**/rtc-drm-transform.js
47 changes: 47 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: New Test Suite

on:
pull_request:

jobs:
new-integration-tests:
runs-on: ubuntu-latest
env:
INTEGRATION_DIR: ./packages/millicast-sdk/integration-tests
INTEGRATION_TEST_CONFIG: ./packages/millicast-sdk/integration-tests/test.config.json

MILLICAST_ACCOUNT_ID: ${{secrets.PUBLISHER_ACCOUNT_ID}}
MILLICAST_STREAM_NAME: ${{vars.PUBLISHER_STREAM_NAME}}
MILLICAST_PUBLISH_TOKEN: ${{secrets.PUBLISHER_TOKEN}}
MILLICAST_DIRECTOR_ENDPOINT: ${{vars.PUBLISHER_DIRECTOR_EP}}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-install
- name: Suite Setup
run: |
sudo apt-get update
sudo apt-get install -y moreutils
sudo apt-get --only-upgrade install google-chrome-stable
npm install playwright
npm run build
npm run demo-app:setup
- name: Execute Test Suite
run: |
# Disable artifact collection
jq '.video = "off"' ${INTEGRATION_TEST_CONFIG} | sponge ${INTEGRATION_TEST_CONFIG}
jq '.trace = "off"' ${INTEGRATION_TEST_CONFIG} | sponge ${INTEGRATION_TEST_CONFIG}
jq '.har = "off"' ${INTEGRATION_TEST_CONFIG} | sponge ${INTEGRATION_TEST_CONFIG}

npm run test-websdk -- tags "not @skip and not @ignore"
- name: Suite Teardown
if: always()
run: |
npm run demo-app:teardown
npm run test:report
- name: Upload artifact
uses: actions/upload-artifact@v3
if: always()
with:
name: test-artifacts
path: ./packages/millicast-sdk/integration-tests/test-reports/
retention-days: 2
Loading
Loading