SPB Git

spb/autoscholar

Public
775 B · 14 lines shellscript
1#!/bin/bash2# CI entry point (no hosted CI: spbgit is a bare git server). Run on the laptop or a node before pushing/deploying:3#   lint → typecheck → unit → integration (needs TEST_DATABASE_URL, default local autoscholar_test) → audit → build web4set -euo pipefail5export CI=true6cd "$(dirname "$0")/.."7echo "== lint";        pnpm exec biome check .8echo "== typecheck";   pnpm -r --filter './packages/**' --filter './services/**' build >/dev/null && (cd apps/web && pnpm typecheck)9echo "== unit";        pnpm vitest run --project unit10echo "== integration"; AUTOSCHOLAR_INTEGRATION=1 pnpm vitest run --project integration11echo "== audit";       pnpm audit --prod12echo "== build web";   (cd apps/web && pnpm build >/dev/null) && echo "web build ok"13echo "CI OK"14
Files · f31542bfe3e46a48642940a680b04ef689782c6b
Menu

Theme