Skip to content

Commit 7d05893

Browse files
committed
Add ci checks
1 parent 9e2c962 commit 7d05893

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)