If CI is slow or flaky, developers skip it mentally. Target fast feedback on pull requests: unit tests, lint, and type checks before the heavy suites. A pipeline that finishes while context is still warm is worth more than a cathedral of jobs that finishes tomorrow.
A maintainable shape
- Must-pass-to-merge: unit tests, pint/phpstan, basic smoke
- Nightly: fuller integration suites and slower browser checks
- Environments that mirror queues, cron, and mail config
- Migration playbooks with tested rollbacks
Confidence compounds
Automate rollbacks and treat database migrations as first-class deploy steps. Confidence to deploy often beats big-bang releases. Keep YAML boring; put cleverness in scripts your team can read six months later.