Fix e2e test cases with v4 SDK #240
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit and stack tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main, dev] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
name: Run unit and stack tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- 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: Unit Tests | |
run: npm test | |
- name: Stack Tests | |
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 }} | |
run-browser-js-staging: | |
name: Run browser SDK staging e2e tests | |
needs: tests | |
uses: ./.github/workflows/browser-js-staging.yml | |
secrets: inherit | |
run-browser-js-production: | |
name: Run browser SDK production e2e tests | |
needs: tests | |
uses: ./.github/workflows/browser-js-production.yml | |
secrets: inherit | |
run-realtime-api-staging: | |
name: Run RealtimeAPI SDK staging e2e tests | |
needs: tests | |
uses: ./.github/workflows/realtime-api-staging.yml | |
secrets: inherit | |
run-realtime-api-production: | |
name: Run RealtimeAPI SDK production e2e tests | |
needs: tests | |
uses: ./.github/workflows/realtime-api-production.yml | |
secrets: inherit |