Skip to content

Commit 7fe6c3b

Browse files
committed
Add GitHub workflow for unit tests
1 parent bfd24cb commit 7fe6c3b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Unit tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
types:
11+
- opened
12+
- reopened
13+
- synchronize
14+
- ready_for_review
15+
16+
jobs:
17+
build:
18+
if: github.event.pull_request.draft == false
19+
runs-on: ubuntu-latest
20+
21+
strategy:
22+
matrix:
23+
node-version: [18, 20, 22, 24, latest]
24+
25+
steps:
26+
- uses: actions/checkout@v5
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v6
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- run: npm ci
32+
- run: npm run build
33+
- run: npm run test

0 commit comments

Comments
 (0)