-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (32 loc) · 995 Bytes
/
node-matrix.yml
File metadata and controls
36 lines (32 loc) · 995 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
34
35
36
# Multi-Node smoke test. Complements validate.yml (which pins to .nvmrc =
# Node 20) by exercising npm ci + npm test on the engine band declared in
# package.json (>= 18). Catches breakage on newer Node before users hit it.
name: Node matrix
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
# pin: v6.0.0 -- actions/checkout
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
# pin: v6.0.0 -- actions/setup-node
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm test