Skip to content

Commit 5293244

Browse files
committed
Add a continuous integration workflow
1 parent 83b3b45 commit 5293244

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Continous Integration
5+
6+
on:
7+
push:
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [20.x]
17+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- name: Install
26+
run: |
27+
corepack enable
28+
pnpm install
29+
- name: Test
30+
run: |
31+
pnpm test
32+
- name: Build
33+
run: |
34+
pnpm build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"clean": "rimraf dist",
2222
"test": "wasm-pack test --node && pnpm test:js",
2323
"test:js": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
24-
"test:js:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watchAll"
24+
"test:js:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watchAll",
25+
"pretest": "pnpm build:js"
2526
},
2627
"keywords": [
2728
"sql",

0 commit comments

Comments
 (0)