AI Hints
CI/CD with GitHub Actions · Lesson 71 of 138

Required Checks

Which jobs must pass.

⏱ 2 min read▶ Video at 1:21:20🎓 Free
Watch this lesson in the CI/CD with GitHub Actions courseWatch on YouTube ↗Full CI/CD with GitHub Actions course

When you require status checks, you choose them by name. Each job in a workflow reports its own check. So the job names you pick matter, and they should stay stable.

Required Checks
From the video: Required Checks
  • Checks chosen by name
  • Each job is a check
  • Stable names matter

Jobs become checks

Here's what a pull request might show. Each job appears as its own check, with its workflow and job name. You mark the important ones as required. Others, like an experimental job, can stay optional, so their failure is visible, but doesn't block merging.

CheckRequired?
CI / test (3.12)yes
CI / lintyes
Quality / coverageyes
Nightly / experimentalno

Tips

Keep required job names stable, because renaming a job means updating the rules. With a matrix, every combination is a separate check, so many teams add one small summary job that needs all the others, and require only that. And make sure required checks run on every pull request, or they'll wait forever.

keyvalue
Stable namesrenames break rules
Matrixmany checks
Summary jobneeds: all, require it
Must runor PRs wait forever

Summary

Required checks are chosen by job name. Keep names stable, and consider one summary job for a matrix. Next, a badge that shows your build status.

Key takeaways
  • Jobs = checks
  • Mark required
  • Summary job
Next up: Status Badges — green at a glance