-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 841 Bytes
/
nodejs.yml
File metadata and controls
35 lines (31 loc) · 841 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
name: Node CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
env:
FORCE_COLOR: '1'
name: Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- node-version: '20'
- node-version: '22'
- node-version: '24'
steps:
- name: Checkout Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: ./.github/actions/prepare
with:
node-version: ${{ matrix.node-version }}
- name: Test (Node 20)
if: matrix.node-version == '20'
run: node scripts/run-tests-v20.js 'test/**/*.test.ts'
- name: Test
if: matrix.node-version != '20'
run: npm test