cc00c6c6ae
Sets up toolchain pinning, format/lint (Biome + Spotless), lefthook pre-commit hooks, Docker Compose for Postgres, and trivial passing tests for both stacks. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
775 B
YAML
26 lines
775 B
YAML
pre-commit:
|
|
parallel: true
|
|
commands:
|
|
gitleaks:
|
|
run: gitleaks protect --staged --no-banner --redact
|
|
format-frontend:
|
|
glob: "frontend/src/**/*.{ts,tsx}"
|
|
run: cd frontend && npx biome format --write src/
|
|
stage_fixed: true
|
|
lint-frontend:
|
|
glob: "frontend/src/**/*.{ts,tsx}"
|
|
run: cd frontend && npx biome check src/
|
|
format-backend:
|
|
glob: "backend/src/**/*.java"
|
|
run: ./backend/mvnw -f backend/pom.xml spotless:apply -q
|
|
stage_fixed: true
|
|
lint-backend:
|
|
glob: "backend/src/**/*.java"
|
|
run: ./backend/mvnw -f backend/pom.xml spotless:check -q
|
|
pre-push:
|
|
commands:
|
|
test-frontend:
|
|
run: cd frontend && npx vitest run
|
|
test-backend:
|
|
run: ./backend/mvnw -f backend/pom.xml test -q
|