Skip to content

Commit 14eb72e

Browse files
manojmallickclaude
andcommitted
test: add vitest suite + GitHub Actions CI
14 unit tests covering the BM25 re-ranker (identifier split, path-boost ordering, zero-score drop) and repo-URL parsing (shorthand, scheme-less, branch pin, host rejection). CI runs lint + tsc + test + build on push/PR to main. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d695492 commit 14eb72e

5 files changed

Lines changed: 1014 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 22
17+
cache: npm
18+
- run: npm ci
19+
- name: Lint
20+
run: npm run lint
21+
- name: Type check
22+
run: npx tsc --noEmit
23+
- name: Test
24+
run: npm test
25+
- name: Build
26+
run: npm run build
27+
env:
28+
# Build must succeed without secrets; runtime features read these at request time.
29+
GEMINI_API_KEY: ""

0 commit comments

Comments
 (0)