-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (31 loc) · 1.01 KB
/
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
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
name: Tests
strategy:
fail-fast: false # if tests for one version fail, continue with the rest
matrix:
# run on multiple platforms to test platform-specific code, if present
# (e.g. webkit's WebCrypto API implementation is different in macOS vs Linux)
runner: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci
- if: ${{ matrix.runner == 'ubuntu-latest' }}
run: npm run lint
- run: npm run test-type-definitions
- name: Install Chrome
run: npx playwright install --with-deps chromium
- name: Install Firefox
run: npx playwright install --with-deps firefox
- name: Install Webkit
run: npx playwright install --with-deps webkit
- name: Run tests
run: npm test