-
Notifications
You must be signed in to change notification settings - Fork 15
67 lines (63 loc) · 1.78 KB
/
browser-js-production.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
59
60
61
62
63
64
65
66
67
name: Browser SDK [production]
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *'
concurrency:
group: ${{ github.workflow }}-e2e-js-production-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e-tests:
name: Run E2E tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x]
project:
[
default,
streaming,
badNetwork,
promote,
demote,
audience,
reattach,
callfabric,
videoElement,
v2WebRTC,
]
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
run: npm run -w=@sw-internal/e2e-js dev -- --project ${{ matrix.project }}
env:
SW_TEST_CONFIG: ${{ secrets.PRODUCTION_E2E_JS_SW_TEST_CONFIG }}
report-result:
needs: e2e-tests
runs-on: ubuntu-latest
if: success() || failure()
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/report-test-result
with:
result: ${{ needs.e2e-tests.result }}
test-suite: browser-js
environment: production
influxdb-bucket: ${{ secrets.INFLUXDB_BUCKET }}
influxdb-org: ${{ secrets.INFLUXDB_ORG }}
influxdb-token: ${{ secrets.INFLUXDB_TOKEN }}
influxdb-url: ${{ secrets.INFLUXDB_URL }}