Skip to content

Commit 8595817

Browse files
committed
Adds unit test workflow
1 parent 100b91a commit 8595817

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/unit-tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Unit Tests
2+
on: push
3+
permissions: read-all
4+
jobs:
5+
vitest:
6+
name: Vitest on ${{ matrix.os }} (Node.js v${{ matrix.node }})
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
11+
node: ["20", "22", "24"]
12+
steps:
13+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
14+
- name: Setup node
15+
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # 4.0.3
16+
with:
17+
node-version: ${{ matrix.node }}
18+
- run: npm ci
19+
- run: npm run test
20+
env:
21+
YARN_GPG: no

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test": "vitest"
99
},
1010
"engines": {
11-
"node": ">=18"
11+
"node": ">=20"
1212
},
1313
"funding": {
1414
"type": "opencollective",

0 commit comments

Comments
 (0)