Skip to content

Commit 1835f4d

Browse files
committed
chore(ci): add fast commit workflow
1 parent 9a3d152 commit 1835f4d

3 files changed

Lines changed: 52 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 20
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
cache: npm
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Typecheck
26+
run: npm run typecheck
27+
28+
- name: Fast tests
29+
run: npm run test:ci
30+
31+
- name: Production build
32+
run: npm run build

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"scripts": {
66
"dev": "node scripts/dev-cleanup.js && next dev --webpack",
77
"build": "rimraf .next/cache && next build --webpack",
8-
"start": "next start"
8+
"start": "next start",
9+
"typecheck": "tsc -p tsconfig.ci.json --noEmit",
10+
"test:ci": "vitest run src/lib/search.test.ts src/lib/graph_integration.test.ts src/lib/contextAssembly.test.ts src/lib/promptSafety.test.ts src/lib/chatHistory.test.ts src/lib/vectorStore.test.ts src/lib/chunker.test.ts",
11+
"test:research": "vitest run src/lib/ablation.test.ts",
12+
"test:benchmark": "vitest run src/lib/pipeline-benchmark.test.ts"
913
},
1014
"dependencies": {
1115
"@babycommando/entity-db": "^1.0.11",

tsconfig.ci.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": [
4+
"next-env.d.ts",
5+
"src/**/*.ts",
6+
"src/**/*.tsx",
7+
"*.ts",
8+
"*.mts"
9+
],
10+
"exclude": [
11+
"node_modules",
12+
"src/lib/ablation.test.ts",
13+
"src/lib/pipeline-benchmark.test.ts"
14+
]
15+
}

0 commit comments

Comments
 (0)