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

WIP - e2e tests, add a dedicated workflow for v2 webrtc not in eu #987

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
47 changes: 47 additions & 0 deletions .github/workflows/browser-js-production-us-region.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: v2 webrtc SDK Tests [production us region]

on:
workflow_call:
workflow_dispatch:
schedule:
- cron: '0/20 * * * *'

concurrency:
group: ${{ github.workflow }}-e2e-js-production-us-${{ github.ref }}
cancel-in-progress: true

jobs:
e2e-tests:
name: Run E2E tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install deps
uses: ./.github/actions/install
with:
NODE_VERSION: ${{ matrix.node-version }}
- name: Build SDKs
uses: ./.github/actions/build
with:
NODE_VERSION: ${{ matrix.node-version }}
- name: Install Playwright
uses: ./.github/actions/playwright
with:
PLAYWRIGHT_VERSION: '1.35.1' # TODO: Read from deps ?
- name: Test
id: run-tests
run: npm run -w=@sw-internal/e2e-js dev -- v2WebrtcFromRest.spec.ts webrtcCalling.spec.ts
env:
SW_TEST_CONFIG: ${{ secrets.PRODUCTION_E2E_JS_USREGION_SW_TEST_CONFIG }}
LAML_CONFERENCE_REGION: ${{ vars.PRODUCTION_E2E_JS_USREGION_LAML_CONFERENCE_REGION }}
- name: Report Result
if: success() || failure()
uses: ./.github/actions/report-test-result
with:
result: ${{ steps.run-tests.conclusion }}
test-suite: v2-sdk-tests
environment: production-us
influxdb-bucket: ${{ secrets.INFLUXDB_BUCKET }}
influxdb-org: ${{ secrets.INFLUXDB_ORG }}
influxdb-token: ${{ secrets.INFLUXDB_TOKEN }}
influxdb-url: ${{ secrets.INFLUXDB_URL }}
Loading