-
-
Notifications
You must be signed in to change notification settings - Fork 29
60 lines (47 loc) · 1.28 KB
/
test.yml
File metadata and controls
60 lines (47 loc) · 1.28 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
54
55
56
57
58
59
60
name: Test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [
# From https://github.com/nodejs/Release
'20.x', # EoL by 2026-04-30
'22.x', # EoL by 2027-04-30
'24.x', # EoL by 2028-04-30
'latest',
]
steps:
- uses: actions/checkout@v5
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Test TypeScript
run: npm run test:typescript
- name: Unit tests
run: npm run test
- name: Completeness check
run: npm run test:completeness
- name: Check docs source lines are up to date
run: |
npm run docs:update-sources
git diff --exit-code docs/content/docs/api/
- name: Lints
run: npm run lint
- name: Build
run: npm run build
- name: Test type inference
run: npm run test:types
- name: Tree-shaking
run: npm run test:treeshake
- name: Lint packages
run: npm run lint:package