-
Notifications
You must be signed in to change notification settings - Fork 16
58 lines (55 loc) · 1.52 KB
/
unit-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: 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: [20.x]
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: 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: Browser SDK staging
needs: tests
uses: ./.github/workflows/browser-js-staging.yml
secrets: inherit
run-browser-js-production:
name: Browser SDK production
needs: tests
uses: ./.github/workflows/browser-js-production.yml
secrets: inherit
run-realtime-api-staging:
name: RealtimeAPI SDK staging
needs: tests
uses: ./.github/workflows/realtime-api-staging.yml
secrets: inherit
run-realtime-api-production:
name: RealtimeAPI SDK production
needs: tests
uses: ./.github/workflows/realtime-api-production.yml
secrets: inherit