diff --git a/AGENTS.md b/AGENTS.md index 634d7f2..61b0a4d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -160,6 +160,21 @@ Full details in `@CODING_GUIDELINES.md`. Key rules: list concrete changes as bullet points. Never write single-line "feat: add X" messages. +**Before every commit (mandatory — agents must not skip):** + +```bash +# from repo root; needs Docker running +export POSTGRES_DB=bilhej POSTGRES_USER=bilhej POSTGRES_PASSWORD=test_pw_ci_123 +export JWT_SECRET=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +export STRIPE_SECRET_KEY=sk_test_fake STRIPE_WEBHOOK_SECRET=whsec_fake STRIPE_PRICE_ID=price_fake +./gradlew check +``` + +This runs frontend lint, frontend unit tests (242), backend tests (163), coverage +thresholds, Flyway checks, and **all 90 E2E tests in Docker**. **Do not commit or +push if this fails.** Optional local guard: `./scripts/install-pre-commit-hook.sh` +(runs the same `check` on every `git commit`). + ### Frontend (Vue.js 3) - `