Skip to content

Commit 5000068

Browse files
committed
Add simple GHA action running the Node.js tests
1 parent 3a51975 commit 5000068

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test Node.js implementation
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
timeout-minutes: 10
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
node-version:
12+
- 20.x
13+
- 22.x
14+
- 24.x
15+
- 25.x
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Harden Runner
19+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
20+
with:
21+
egress-policy: audit
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- name: Check Node.js installation
28+
run: |
29+
node --version
30+
npm --version
31+
- name: Install dependencies
32+
run: npm install
33+
- name: npm test
34+
run: npm run node:test

0 commit comments

Comments
 (0)