-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 737 Bytes
/
test.yml
File metadata and controls
33 lines (26 loc) · 737 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
31
32
33
name: tests
on:
push:
branches: [main, master]
pull_request:
jobs:
test:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Smoke-test CLI module loads
run: node -e "const p = require('./src/pipeline.js'); if (typeof p.buildAuditTrail !== 'function') process.exit(1);"