Skip to content

Commit b42836d

Browse files
committed
Add github actions workflow to test on CI
1 parent aa07e4c commit b42836d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [16, 18, 20, 22]
16+
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
- name: pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
24+
run_install: false
25+
- name: node ${{ matrix.node-version }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'pnpm'
30+
- name: install
31+
run: pnpm install --frozen-lockfile
32+
- name: test
33+
run: pnpm test
34+
env:
35+
CI: true

0 commit comments

Comments
 (0)