summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-07-27 00:26:32 +0200
committercashmere <cashmere@autistici.org>2026-07-27 00:26:32 +0200
commitbcb8a45222d0d401b3f3939eace0584c2b629b55 (patch)
tree12dec6e035d6f295cbf366a2f06010f87bc41245
parent4b799869b1298581b539f2a00435627dedb364f8 (diff)
downloadopencut-bcb8a45222d0d401b3f3939eace0584c2b629b55.tar.gz
ci: run tests and typecheck for real
The test step was a no-op stub. CI now installs at the repo root (where bun.lock and bunfig.toml live), builds via the root script, typechecks, and runs bun test. Adds 'just verify' as the same local gate (tests + typecheck + build). Full lint stays out of the gate until the planned feature stripping lands.
-rw-r--r--.github/workflows/bun-ci.yml12
-rw-r--r--justfile8
2 files changed, 14 insertions, 6 deletions
diff --git a/.github/workflows/bun-ci.yml b/.github/workflows/bun-ci.yml
index 386b42bc..8f702f72 100644
--- a/.github/workflows/bun-ci.yml
+++ b/.github/workflows/bun-ci.yml
@@ -65,17 +65,17 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
- key: ${{ runner.os }}-bun-1.2.18-${{ hashFiles('apps/web/bun.lock') }}
+ key: ${{ runner.os }}-bun-1.2.18-${{ hashFiles('bun.lock') }}
- name: Install dependencies
- working-directory: apps/web
run: bun install
- name: Build
+ run: bun build:web
+
+ - name: Typecheck
working-directory: apps/web
- run: bun run build
+ run: bunx tsc --noEmit
- name: Run tests
- working-directory: apps/web
- run: echo "No tests implemented yet"
- continue-on-error: true
+ run: bun test
diff --git a/justfile b/justfile
index c7b65dc8..9c264b8a 100644
--- a/justfile
+++ b/justfile
@@ -44,6 +44,14 @@ typecheck:
format:
cd apps/web && bun run format
+# Full local quality gate: tests, typecheck, production build.
+# Full lint is NOT part of the gate yet (~112 pre-existing upstream errors);
+# lint the files you touched with `just lint`.
+verify:
+ bun test
+ cd apps/web && bunx tsc --noEmit
+ bun build:web
+
# Build the Rust WASM package (run ./script/setup-rust once first)
wasm:
bun build:wasm