Skip to content

Commit 040b2d3

Browse files
committed
ci: add unit tests github workflows
1 parent 2b052df commit 040b2d3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tests
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
pull_request:
7+
branches:
8+
- "*"
9+
jobs:
10+
unit:
11+
strategy:
12+
matrix:
13+
node_version: [20.x, 22.x, 24.x]
14+
runs-on: ubuntu-latest
15+
name: Unit Tests on Node v${{ matrix.node_version }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node_version }}
22+
- run: yarn install --frozen-lockfile
23+
- run: yarn run test:coverage

0 commit comments

Comments
 (0)