Skip to content

Use node:sqlite on node version >= 22 #2

Use node:sqlite on node version >= 22

Use node:sqlite on node version >= 22 #2

Workflow file for this run

name: Node v20 CI
on:
push:
paths-ignore:
- "*.md"
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Cache node_modules
uses: actions/cache@v4
with:
path: |
~/.npm
~/.nvm
~/work/better-sqlite3-wrapper/better-sqlite3-wrapper/node_modules
~/work/better-sqlite3-wrapper/better-sqlite3-wrapper/package-lock.json
key: ${{ runner.os }}-node_modules-cache-v1-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-cache-v1-
- name: Run tests
run: |
npm i
node ./index.test.js