-
-
Notifications
You must be signed in to change notification settings - Fork 35
27 lines (25 loc) · 579 Bytes
/
Copy pathtest.yml
File metadata and controls
27 lines (25 loc) · 579 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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 22]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install --no-audit --no-fund
- name: Syntax check
run: node --check preload.mjs
- name: Run tests
run: npm test