Skip to content

Commit 04e1166

Browse files
committed
Add GitHub action configuration
1 parent 805b27a commit 04e1166

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/test.yml

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
},
1212
"resolutions": {
1313
"minimist": "^1.2.2"
14-
}
14+
},
15+
"packageManager": "[email protected]"
1516
}

0 commit comments

Comments
 (0)