Skip to content

Commit 1b66ad4

Browse files
committed
ci: Node full index on fixtures/minimal after build
Catches better-sqlite3 multi-statement DDL and full rebuild on Linux.
1 parent 3d35e65 commit 1b66ad4

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ jobs:
7979
- name: Node smoke (dist + better-sqlite3)
8080
run: node dist/index.mjs query "SELECT 1 as ok"
8181

82+
# Full rebuild exercises multi-statement DDL (`runSql`), `dropAll`, workers path — Node only.
83+
- name: Node full index (fixtures/minimal)
84+
run: |
85+
export CODEMAP_ROOT="$GITHUB_WORKSPACE/fixtures/minimal"
86+
rm -f "$CODEMAP_ROOT/.codemap.db"
87+
node dist/index.mjs --full
88+
node dist/index.mjs query "SELECT COUNT(*) AS files FROM files"
89+
8290
benchmark:
8391
name: 📊 Benchmark (fixture)
8492
runs-on: ubuntu-latest

docs/packaging.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ One schema and SQL surface; backend is chosen in **`src/sqlite-db.ts`**: **`bett
4242

4343
**Speed (indicative, same machine — not a spec):** Bun is often **~1.5×** faster than Node for **`--version`** and short **`query`** (process startup + loading **`dist/`**). A **`fixtures/minimal`** **`--full`** rebuild is often **~** faster on Bun by median wall time; first runs can be noisier. Large-app full rebuilds follow the same idea but scale with tree size and I/O.
4444

45-
| Track | Where |
46-
| ------------ | ------------------------------------------------------------------------------------------------------ |
47-
| **CI** | `node dist/index.mjs query "SELECT 1"` after build ([`ci.yml`](../.github/workflows/ci.yml)). |
48-
| **Optional** | Extra matrix (more Node versions, Bun smoke); changelog note if **`engines`** or SQLite stack changes. |
45+
| Track | Where |
46+
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47+
| **CI** | After build: `node dist/index.mjs query "SELECT 1"`; then **`CODEMAP_ROOT=fixtures/minimal`** `node dist/index.mjs --full` + query ([`ci.yml`](../.github/workflows/ci.yml)). |
48+
| **Optional** | Extra matrix (more Node versions, Bun smoke); changelog note if **`engines`** or SQLite stack changes. |
4949

5050
## Releases
5151

0 commit comments

Comments
 (0)