Skip to content

Commit c89161b

Browse files
committed
ci: target Node 22.x LTS and add native better-sqlite3 rebuild step to prevent SIGSEGV in CI runner
1 parent 15f9cfc commit c89161b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [20.x, 22.x]
16+
node-version: [22.x]
1717

1818
steps:
1919
- name: Checkout repository
@@ -28,6 +28,9 @@ jobs:
2828
- name: Install dependencies
2929
run: npm ci
3030

31+
- name: Rebuild native C++ addons
32+
run: npm rebuild better-sqlite3
33+
3134
- name: Run ESLint
3235
run: npm run lint
3336

@@ -46,7 +49,7 @@ jobs:
4649
- uses: actions/checkout@v4
4750
- uses: actions/setup-node@v4
4851
with:
49-
node-version: 20.x
52+
node-version: 22.x
5053
cache: npm
5154
- run: npm ci
5255
- name: Audit for high/critical vulnerabilities

0 commit comments

Comments
 (0)