-
-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (28 loc) · 647 Bytes
/
test.yml
File metadata and controls
30 lines (28 loc) · 647 Bytes
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
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CI: true
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [16, 18, 20, 22, 24]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Node.js ${{matrix.node-version}} on ${{matrix.os}}
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
- run: npm install
- name: Lint
run: npm run -s pretest
- name: Tests
run: npm run -s tests-only
- name: Coverage
run: npm run -s posttest