-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 900 Bytes
/
ci.yml
File metadata and controls
33 lines (27 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
- name: Configure git identity (kb save shells out to git commit in tests)
run: |
git config --global user.email "ci@mykb.local"
git config --global user.name "mykb CI"
- run: npm ci --registry https://registry.npmjs.org
- run: npm run lint
- run: npm run build
# Pre-build the CLI bundle so the cli-bundle test's beforeAll
# finds dist/cli-bundle/ already populated. Without this, the
# 60-90s native-build of better-sqlite3 inside vitest's beforeAll
# blocks the worker RPC heartbeat and the run aborts.
- run: npm run bundle:cli
- run: npm test