Skip to content

Commit 240b077

Browse files
Build for node v24
1 parent dcb0901 commit 240b077

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: "20"
26+
node-version: "24"
2727

2828
- name: Cache node_modules
2929
uses: actions/cache@v4

.github/workflows/ci_bun.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 20
1415
steps:
1516
- name: Git checkout
1617
uses: actions/checkout@v4

.github/workflows/ci_node20.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Node v20 CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- "*.md"
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 20
15+
steps:
16+
- name: Git checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: "20"
25+
26+
- name: Cache node_modules
27+
uses: actions/cache@v4
28+
with:
29+
path: |
30+
~/.npm
31+
~/.nvm
32+
~/work/better-sqlite3-wrapper/better-sqlite3-wrapper/node_modules
33+
~/work/better-sqlite3-wrapper/better-sqlite3-wrapper/package-lock.json
34+
key: ${{ runner.os }}-node_modules-cache-v1-${{ hashFiles('**/package-lock.json') }}
35+
restore-keys: |
36+
${{ runner.os }}-node_modules-cache-v1-
37+
38+
- name: Run tests
39+
run: |
40+
npm i
41+
node ./index.test.js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"bun": ">=0.8"
4343
},
4444
"optionalDependencies": {
45-
"better-sqlite3": "^11.5.0"
45+
"better-sqlite3": "10.1.0"
4646
},
4747
"devDependencies": {
4848
"prettier": "^2.8.8",

0 commit comments

Comments
 (0)