#!/bin/bash # CI entry point (no hosted CI: spbgit is a bare git server). Run on the laptop or a node before pushing/deploying: # lint → typecheck → unit → integration (needs TEST_DATABASE_URL, default local autoscholar_test) → audit → build web set -euo pipefail export CI=true cd "$(dirname "$0")/.." echo "== lint"; pnpm exec biome check . echo "== typecheck"; pnpm -r --filter './packages/**' --filter './services/**' build >/dev/null && (cd apps/web && pnpm typecheck) echo "== unit"; pnpm vitest run --project unit echo "== integration"; AUTOSCHOLAR_INTEGRATION=1 pnpm vitest run --project integration echo "== audit"; pnpm audit --prod echo "== build web"; (cd apps/web && pnpm build >/dev/null) && echo "web build ok" echo "CI OK"