Skip to content

Commit e096dcf

Browse files
authored
ci: additional smoke tests (#283)
* smoketests: add more node smoketests, streamline node tests * smoketests: move jest tests to separate directory * smoketests: make rxid test more strict in Node * smoketests: change smoketests to module, move installing and building to preparation * smoketests: add simple WDIO tests for React * smoketests: add session replay to React test * smoketests: add SAUCE_* credentials in workflows * workflows: split into all and rest * smoketests: fix node tests on windows * smoketests: wrap args in quotes on Windows in npm * smoketests: replace tsx with ts-node in prepare-packages * smoketests: fix invalid paths to sdk packages in test packages * smoketests: add more tests to react * smoketests: add more node smoketests with database * smoketests: use exceptions instead of messages in node tests * smoketests: listen on db events in node * smoketests: add --unhandled-rejections=throw to node test programs * smoketests: downgrade @wdio packages to 8.40.x * smoketests: add iOS simulator target to WDIO * smoketests: make cleaning optional * smoketests: add README --------- Co-authored-by: Sebastian Alex <sebastian.alex@saucelabs.com>
1 parent c5ee428 commit e096dcf

39 files changed

+14137
-7955
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,42 @@ on:
66
pull_request:
77

88
jobs:
9+
test_linux_all:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [20.x]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: npm ci
23+
- run: npm run build
24+
- run: npm run lint
25+
- run: npm run format:check
26+
- run: npm test
27+
- run: npm run smoketest:node
28+
env:
29+
SMOKETESTS_SUBMIT_LAYER_URL: ${{ secrets.SMOKETESTS_SUBMIT_LAYER_URL }}
30+
SMOKETESTS_DIRECT_SUBMIT_URL: ${{ secrets.SMOKETESTS_DIRECT_SUBMIT_URL }}
31+
- run: npm run smoketest:browser
32+
env:
33+
SMOKETESTS_SUBMIT_LAYER_URL: ${{ secrets.SMOKETESTS_SUBMIT_LAYER_URL }}
34+
SMOKETESTS_DIRECT_SUBMIT_URL: ${{ secrets.SMOKETESTS_DIRECT_SUBMIT_URL }}
35+
SMOKETESTS_SAUCE_USERNAME: ${{ secrets.SMOKETESTS_SAUCE_USERNAME }}
36+
SMOKETESTS_SAUCE_ACCESS_KEY: ${{ secrets.SMOKETESTS_SAUCE_ACCESS_KEY }}
37+
938
test_linux:
1039
runs-on: ubuntu-latest
1140

1241
strategy:
1342
matrix:
1443
build-version: [20.x]
15-
node-version: [16.x, 18.x, 20.x]
44+
node-version: [16.x, 18.x]
1645

1746
steps:
1847
- uses: actions/checkout@v4
@@ -22,14 +51,12 @@ jobs:
2251
node-version: ${{ matrix.build-version }}
2352
- run: npm ci
2453
- run: npm run build
25-
- run: npm run lint
26-
- run: npm run format:check
2754
- name: Test using Node.js ${{ matrix.node-version }}
2855
uses: actions/setup-node@v4
2956
with:
3057
node-version: ${{ matrix.node-version }}
3158
- run: npm test
32-
- run: npm run smoketest
59+
- run: npm run smoketest:node
3360
env:
3461
SMOKETESTS_SUBMIT_LAYER_URL: ${{ secrets.SMOKETESTS_SUBMIT_LAYER_URL }}
3562
SMOKETESTS_DIRECT_SUBMIT_URL: ${{ secrets.SMOKETESTS_DIRECT_SUBMIT_URL }}
@@ -50,33 +77,34 @@ jobs:
5077
node-version: ${{ matrix.build-version }}
5178
- run: npm ci
5279
- run: npm run build
53-
- run: npm run lint
54-
- run: npm run format:check
5580
- name: Test using Node.js ${{ matrix.node-version }}
5681
uses: actions/setup-node@v4
5782
with:
5883
node-version: ${{ matrix.node-version }}
5984
- run: npm i -g npm@8
6085
- run: npm test
61-
- run: npm run smoketest
86+
- run: npm run smoketest:node
6287
env:
6388
SMOKETESTS_SUBMIT_LAYER_URL: ${{ secrets.SMOKETESTS_SUBMIT_LAYER_URL }}
6489
SMOKETESTS_DIRECT_SUBMIT_URL: ${{ secrets.SMOKETESTS_DIRECT_SUBMIT_URL }}
6590

6691
test_windows:
6792
runs-on: windows-latest
93+
94+
strategy:
95+
matrix:
96+
node-version: [18.x]
97+
6898
steps:
6999
- uses: actions/checkout@v4
70-
- name: Use Node.js 18.x
100+
- name: Use Node.js ${{ matrix.node-version }}
71101
uses: actions/setup-node@v4
72102
with:
73-
node-version: 18.x
103+
node-version: ${{ matrix.node-version }}
74104
- run: npm ci
75105
- run: npm run build
76-
- run: npm run lint
77-
- run: npm run format:check
78106
- run: npm test
79-
- run: npm run smoketest
107+
- run: npm run smoketest:node
80108
env:
81109
SMOKETESTS_SUBMIT_LAYER_URL: ${{ secrets.SMOKETESTS_SUBMIT_LAYER_URL }}
82110
SMOKETESTS_DIRECT_SUBMIT_URL: ${{ secrets.SMOKETESTS_DIRECT_SUBMIT_URL }}

0 commit comments

Comments
 (0)