Skip to content

Commit e247b9d

Browse files
committed
fix(ci): update CI configuration to use matrix for OS and Node versions
1 parent 6dec5db commit e247b9d

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ on:
99
jobs:
1010
test:
1111
name: Typecheck & Tests
12-
runs-on: ubuntu-latest
12+
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
node: [18, 20]
15+
os: [ubuntu-latest]
16+
node_version: [18.18.2, lts/*]
17+
include:
18+
- os: macos-latest
19+
node_version: lts/*
20+
- os: windows-latest
21+
node_version: lts/*
22+
fail-fast: false
1623
env:
1724
CI: true
1825
steps:
@@ -22,23 +29,23 @@ jobs:
2229
- name: Setup Node
2330
uses: actions/setup-node@v4
2431
with:
25-
node-version: ${{ matrix.node }}
32+
node-version: ${{ matrix.node_version }}
2633
cache: pnpm
2734

2835
- name: Enable corepack (provides pnpm)
2936
run: corepack enable
3037

31-
- name: Prepare pnpm
32-
run: corepack prepare [email protected] --activate
38+
- name: Setup
39+
run: npm i -g @antfu/ni
3340

34-
- name: Install dependencies
35-
run: pnpm install --frozen-lockfile
41+
- name: Install
42+
run: nci
3643

3744
- name: Typecheck
38-
run: pnpm run typecheck
45+
run: nr typecheck
3946

4047
- name: Run tests
41-
run: pnpm test -- --run
48+
run: nr test -- --run
4249

4350
- name: Run SSR check
44-
run: pnpm run check:ssr
51+
run: nr check:ssr

0 commit comments

Comments
 (0)