Skip to content

Commit

Permalink
Adding sql.js test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
BobdenOs committed Apr 24, 2024
1 parent f456747 commit 3a56fe1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/sqlite-wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests WASM

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled]

# Allow parallel jobs on `main`, so that each commit is tested. For PRs, run only the latest commit.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
name: Node.js ${{ matrix.node }}

strategy:
fail-fast: true
matrix:
node: [18]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'

- run: npm ci
# Remove better-sqlite3 to force switching to sql.js
- run: npm install sql.js && rm -rf /node_modules/better-sqlite3/
- run: npm test -w sqlite -- --maxWorkers=1
env:
FORCE_COLOR: true

0 comments on commit 3a56fe1

Please sign in to comment.