-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (42 loc) · 1.18 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Code tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-node:
strategy:
fail-fast: false # if tests for one version fail, continue with the rest
matrix:
node-version: [17.x, 18.x, '20.x']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
name: Node integration tests (${{ matrix.node-version }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test-node
test-browsers:
name: Browser integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies
run: npm ci
- name: Install Chrome
run: npx playwright install-deps chrome
- name: Run browser tests
run: npm run test-browser
type-definitions:
name: Test type definitions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci
- run: npm run test-type-definitions