Skip to content

Commit c98a237

Browse files
committed
chore: update CI workflow to include Node.js version matrix and SSR check
1 parent e28effc commit c98a237

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
name: CI
22

3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: Typecheck & Tests
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node: [18, 20]
16+
env:
17+
CI: true
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node }}
26+
cache: 'pnpm'
27+
28+
- name: Setup pnpm
29+
uses: pnpm/action-setup@v2
30+
with:
31+
version: 10.18.1
32+
33+
- name: Install dependencies
34+
run: pnpm install --frozen-lockfile
35+
36+
- name: Typecheck
37+
run: pnpm run typecheck
38+
39+
- name: Run tests
40+
run: pnpm test -- --run
41+
42+
- name: Run SSR check
43+
run: pnpm run check:ssr
44+
name: CI
45+
346
on:
447
push:
548
branches: [main]

0 commit comments

Comments
 (0)