-
Notifications
You must be signed in to change notification settings - Fork 26
37 lines (31 loc) · 840 Bytes
/
node.yml
File metadata and controls
37 lines (31 loc) · 840 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
37
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
name: Node.js CI
on:
push:
branches: [ main ]
paths:
- 'nodejs/**'
- .github/workflows/node.yml
pull_request:
branches: [ main ]
paths:
- 'nodejs/**'
- .github/workflows/node.yml
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20, 22, 24 ]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: cd nodejs && npm install
- name: Run tests
run: cd nodejs && npm run test:verbose