Skip to content

Commit 5f09d74

Browse files
committed
Add GitHub action configuration
1 parent 805b27a commit 5f09d74

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: 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: Bootstrap packages
28+
run: pnpm lerna bootstrap
29+
- name: Run tests
30+
run: pnpm test

0 commit comments

Comments
 (0)