Skip to content

Commit e2c42fc

Browse files
committed
Add github action for tests
1 parent f36fdaf commit e2c42fc

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
on:
3+
push:
4+
branches: master
5+
pull_request:
6+
branches: master
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [20, 22, 24]
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v6
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 10
20+
- name: Setup Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v6
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: Install dependencies
25+
run: pnpm install --frozen-lockfile
26+
- name: Lint
27+
run: pnpm lint
28+
- name: Run tests
29+
run: pnpm test

0 commit comments

Comments
 (0)