-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (24 loc) · 717 Bytes
/
Copy pathci.yml
File metadata and controls
27 lines (24 loc) · 717 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: ci
on:
push:
pull_request:
permissions:
contents: read
jobs:
build-test:
runs-on: ubuntu-latest
# Node 20 excluded: `node --test "tests/*.test.ts"` needs test-runner glob
# support (Node 21+) and TS type-stripping (Node 22.6+, default-on in late
# 22.x). The suite is TypeScript importing compiled dist output.
strategy:
matrix:
node: [22, 24]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run build
- run: npm test