Skip to content

Commit 6b4f240

Browse files
committed
feat: enhance Node.js compatibility tests by adding support for multiple OS but only node 24
1 parent 976becd commit 6b4f240

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,20 @@ jobs:
172172
npm run build && \
173173
npm test"
174174
175+
# Node.js compatibility tests require --experimental-sqlite flag and Node 22+
176+
# We test only on Node 24 as the experimental SQLite API may change between versions
175177
test-api-compatibility:
176178
needs: [lint]
177-
runs-on: ubuntu-latest
179+
strategy:
180+
matrix:
181+
os: [ubuntu-latest, macos-latest, windows-latest]
182+
node-version: [24]
183+
runs-on: ${{ matrix.os }}
178184
steps:
179185
- uses: actions/checkout@v4
180186
- uses: actions/setup-node@v4
181187
with:
182-
node-version: 24
188+
node-version: ${{ matrix.node-version }}
183189
cache: "npm"
184190
- run: npm ci
185191
- name: Check API compatibility types (TypeScript compile-time validation)

0 commit comments

Comments
 (0)