ci(check): add svelte-check and workspace lib tests

svelte-check catches type/template errors Vite's build skips; cargo
test --workspace --lib runs our pure-unit suites (prompt contract,
hallucination filter, preset parsing) without GPU or runtime deps.
Test step is Linux-only so the Windows/macOS legs stay focused on
platform compile coverage.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-21 17:32:18 +01:00
parent ce2b4fdac6
commit 697642fa4d

View File

@@ -128,6 +128,12 @@ jobs:
- name: cargo check (workspace)
run: cargo check --workspace --all-targets
# Library tests only — no runtime/GPU deps. Linux-gated to keep
# the macOS + Windows legs focused on compile coverage.
- name: cargo test (workspace, libs)
if: matrix.os == 'ubuntu-22.04'
run: cargo test --workspace --lib
frontend:
name: svelte build + lint
runs-on: ubuntu-22.04
@@ -149,3 +155,9 @@ jobs:
# Svelte/Vite frontend compiles cleanly.
- name: Build frontend (Vite only)
run: npm run build
# svelte-check catches type and template errors that Vite's build
# step happily lets through (Vite only type-checks .ts; .svelte
# type drift slips past until svelte-check runs).
- name: svelte-check
run: npm run check