-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 690 Bytes
/
ci.yml
File metadata and controls
28 lines (26 loc) · 690 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm audit --omit=dev
# Node 22+ supports coverage thresholds; Node 20 runs tests only
- name: Lint + test with 100% coverage
if: matrix.node-version >= 22
run: npm run check
- name: Lint + test (no coverage enforcement)
if: matrix.node-version < 22
run: npm run lint && npm test