Before ANY commit reaches GitHub, ALL verification checks MUST pass with ZERO errors.
This policy ensures our main branch remains pristine, production-ready, and fully functional at all times.
.\scripts\pre-commit-check.ps1
./scripts/pre-commit-check.sh
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
ALL CHECKS PASSED β
β
β β
β Safe to commit to GitHub! β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Next steps:
1. git add .
2. git commit -m "your message"
3. git push origin your-branch
If ANY check fails, you will see:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β VERIFICATION FAILED β β
β β
β N check(s) failed. Fix errors before committing! β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ACTION REQUIRED:
1. Make code changes
2. Test locally
3. Run: .\scripts\pre-commit-check.ps1
4. Fix any errors if checks fail
5. Re-run verification until all pass
6. git add .
7. git commit -m "descriptive message"
8. git push origin branch-name
1. Create feature branch: git checkout -b feature/your-feature
2. Develop and commit following standard workflow
3. Before creating PR:
- Run pre-commit verification
- Ensure all checks pass
4. Create Pull Request
5. GitHub Actions CI/CD runs automatically
6. Address any CI/CD failures
7. Merge only when CI/CD passes
As of 2025-11-01:
| Component | Tests | Status | Notes |
|---|---|---|---|
| Backend Unit Tests | 17/17 | β PASSING | 100% passing |
| Backend Integration Tests | 0 active | β οΈ DISABLED | Temporarily disabled (Prisma type issues) |
| Backend Contract Tests | N/A | βΉοΈ PLACEHOLDER | To be implemented |
| Frontend Build | - | β PASSING | 325.48 kB bundle |
| Frontend Lint | - | β PASSING | 0 errors, 92 warnings (acceptable) |
β βIβll fix it in the next commitβ β βItβs just a small errorβ β βThe tests pass locally, so itβs fineβ β βIβll let CI/CD catch itβ β Committing with failing tests β Skipping verification checks
cd backend
npx prisma generate
cd backend # or frontend
npm run lint -- --fix
cd backend
npm run test:unit
# Review and fix failing tests
cd frontend
npm run build
# Check TypeScript errors
npx tsc --noEmit
There are NO exceptions to this policy.
If you believe you have a valid reason to bypass verification:
If you encounter issues with the verification script:
Remember: A few extra minutes of verification saves hours of debugging later!
Last Updated: 2025-11-01 Version: 1.0