Skip to content

Commit cf3a977

Browse files
committed
ci: test.yml
1 parent e4b9422 commit cf3a977

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [22.x, 24.x]
12+
13+
steps:
14+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
17+
with:
18+
version: 10
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'pnpm'
25+
26+
- name: Install Dependencies
27+
run: pnpm install
28+
29+
- name: Run test
30+
run: pnpm run test

0 commit comments

Comments
 (0)