-
Notifications
You must be signed in to change notification settings - Fork 333
53 lines (43 loc) · 1.74 KB
/
Copy pathintegration-tests.yml
File metadata and controls
53 lines (43 loc) · 1.74 KB
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
name: Integration Tests
on:
push:
branches: [master, '**/*-rc']
pull_request:
branches: [master, '**/*-rc']
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
checks: write # for dorny/test-reporter to post results
strategy:
fail-fast: false
max-parallel: 4
matrix:
browser: [chrome-latest, edge-latest, safari-latest, firefox-latest, ios-safari-sim, android-chrome-sim]
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SAUCE_TUNNEL_NAME: ci-js-sdk-test-${{ matrix.browser }}-${{ github.run_id }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Use Node.js 22.x
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22.x
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build-full
- name: Sauce test
# for some reason, android emulator tests don't work with localhost so we need an IP to give to the runner...
run: BROWSER=${{ matrix.browser }} ROOT_DIR=$(pwd) SAUCE_HOST=$(hostname -I | awk '{print $1; exit}') npm run integration-test:sauce
- name: Test Report
uses: dorny/test-reporter@7b7927aa7da8b82e81e755810cb51f39941a2cc7 # v2
if: success() || failure() # run this step even if previous step failed
with:
name: Browser Tests # Name of the check run which will be created
reporter: mocha-json # Format of test results
path: 'tests/browser/results/*.json' # Path to test results
list-tests: 'failed'
fail-on-error: 'false'