Skip to content

Hand raise API for the video SDK #1131

Hand raise API for the video SDK

Hand raise API for the video SDK #1131

Workflow file for this run

name: Run Tests
on:
push:
branches: [main]
pull_request:
branches:
[main, dev, aa/video-emitter-transform, aa/channels, aa/cleanup-emitter]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-test:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Install dependencies and build
uses: ./.github/actions/setup-node-app
with:
NODE_VERSION: ${{ matrix.node-version }}
- name: Test
run: npm test
stack-tests:
name: Stack tests
needs: unit-test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Install dependencies and build
uses: ./.github/actions/setup-node-app
with:
NODE_VERSION: ${{ matrix.node-version }}
- name: Test
run: npm run -w=@sw-internal/stack-tests dev
env:
RELAY_HOST: ${{ secrets.RELAY_HOST }}
RELAY_PROJECT: ${{ secrets.RELAY_PROJECT }}
RELAY_TOKEN: ${{ secrets.RELAY_TOKEN }}
stage-e2e-realtime-api:
name: E2E tests Realtime API - Staging
needs: stack-tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Install dependencies and build
uses: ./.github/actions/setup-js-app
with:
NODE_VERSION: ${{ matrix.node-version }}
- name: Test
run: npm run -w=@sw-internal/e2e-realtime-api dev
env:
SW_TEST_CONFIG: ${{ secrets.STAGING_E2E_REALTIME_SW_TEST_CONFIG }}
prod-e2e-realtime-api:
name: E2E tests Realtime API - Production
needs: stack-tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Install dependencies and build
uses: ./.github/actions/setup-js-app
with:
NODE_VERSION: ${{ matrix.node-version }}
- name: Test
run: npm run -w=@sw-internal/e2e-realtime-api dev
env:
SW_TEST_CONFIG: ${{ secrets.PRODUCTION_E2E_REALTIME_SW_TEST_CONFIG }}
stage-e2e-js:
name: E2E tests JS - Staging
runs-on: ubuntu-latest
needs: stack-tests
strategy:
matrix:
node-version: [18.x]
project: [default, streaming, slow]
steps:
- uses: actions/checkout@v3
- name: Install dependencies and build
uses: ./.github/actions/setup-js-app
with:
NODE_VERSION: ${{ matrix.node-version }}
- name: Test
run: npm run -w=@sw-internal/e2e-js dev -- --project ${{ matrix.project }}
env:
SW_TEST_CONFIG: ${{ secrets.STAGING_E2E_JS_SW_TEST_CONFIG }}
prod-e2e-js:
name: E2E tests JS - Production
runs-on: ubuntu-latest
needs: stack-tests
strategy:
matrix:
node-version: [18.x]
project: [default, streaming, slow]
steps:
- uses: actions/checkout@v3
- name: Install dependencies and build
uses: ./.github/actions/setup-js-app
with:
NODE_VERSION: ${{ matrix.node-version }}
- name: Test
run: npm run -w=@sw-internal/e2e-js dev -- --project ${{ matrix.project }}
env:
SW_TEST_CONFIG: ${{ secrets.PRODUCTION_E2E_JS_SW_TEST_CONFIG }}