Design a fast, reliable CI pipeline with clear stages for lint, type-check, test, build, and security scanning, plus caching, parallelism, and merge gates; use when setting up CI for a repo, speeding up or stabilizing a flaky pipeline, defining required checks and branch protection, or when users mention CI, build pipeline, quality gates, test stages, or continuous integration.