pre-pushβ’908 B
#!/bin/sh
echo "π Running pre-push checks..."
# Run fast checks in parallel (typecheck, lint, format)
echo "β‘ Running parallel checks (typecheck, lint, format)..."
pnpm typecheck & P1=$!
pnpm lint & P2=$!
pnpm format:check & P3=$!
# Wait for all parallel checks and fail if any failed
wait $P1 || exit 1
wait $P2 || exit 1
wait $P3 || exit 1
echo "β
Parallel checks passed"
# Run test suite with coverage enforcement (95% branches, 100% lines/statements)
echo "π§ͺ Running tests with coverage (95% branches, 100% lines/statements)..."
pnpm test:cov -- --coverage.thresholds.lines=100 --coverage.thresholds.branches=95 --coverage.thresholds.statements=100 || exit 1
echo "β
Tests and coverage passed"
# Run security audit (critical vulnerabilities only)
echo "π Running security audit (critical only)..."
pnpm audit --audit-level=critical || exit 1
echo "β
All pre-push checks passed!"