Lint
→
Type check
→
Unit tests
→
Integration (real DB)
→
UI tests (sharded)
▸ Implementation notes
- Fail-fast ordering: lint, format, and type-check run first and gate everything else, so CI rejects trivially-broken code in seconds, not minutes
- Integration tests hit a real containerized database, never mocks, for anything touching persistence — the extra runtime buys a suite that can't lie about a schema mismatch
- UI tests run browser-driven and sharded across CI runners, so end-to-end coverage doesn't become the bottleneck as the suite grows
- Secret scanning runs as a pre-commit gate, not a CI afterthought — leaked credentials get caught before they ever reach a remote branch
- Toolchain pinning: a version manager and task runner (e.g. mise) pins exact language/runtime and package-manager versions in a lockfile, and every workflow — setup, lint, test tiers, migrations, build — is defined as a task, so a developer and CI run the identical command. A declarative task file (e.g. Taskfile) plays the same role on projects that predate or don't need that tool — different runner, same principle