Skip to content

Commit

Permalink
e2e tests, add a dedicated workflow for v2 webrtc not in eu
Browse files Browse the repository at this point in the history
  • Loading branch information
giavac committed Mar 15, 2024
1 parent 82f8461 commit 0d9f10e
Showing 1 changed file with 47 additions and 0 deletions.
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 }}

0 comments on commit 0d9f10e

Please sign in to comment.