What do you run on pull requests versus nightly?
IntermediateProductionTesting and Policy as Code
Answer
Per PR: fmt, validate, tflint, policy scan, plan, mock-provider tests and cost diff, so feedback arrives in a few minutes. Nightly or on merge: real-apply integration tests, drift detection plans for every stack and dependency update checks. Anything slow and expensive stays off the PR path, otherwise people bypass it.
More on Testing and Policy as Code
How do you test infrastructure code, and what does the testing pyramid look like?BeginnerWhat does the static-analysis layer catch?BeginnerWhat does tflint do, and how is it configured?BeginnerHow do Checkov and Trivy differ?IntermediateHow does `terraform test` work?BeginnerHow do mock providers work in `terraform test`?Advanced