What does `continue-on-error` at job level do to the run and to branch protection?
IntermediateConceptJobs, Steps, Matrix & Concurrency
Answer
The job can fail without failing the run, and needs.<job>.result reports success for dependents, so the pipeline continues. The job itself is still shown with a failure marker in the run UI, which is easy to ignore. Do not rely on it for required checks; gate merges on a fan-in job you control. Typical use is an experimental matrix leg:
continue-on-error: ${{ matrix.experimental == true }}
Do not use it to hide flaky tests; the failure disappears from everyone's attention.
More on Jobs, Steps, Matrix & Concurrency
How does `needs` work, and what happens to a job whose dependency failed or was skipped?BeginnerWhat is the implicit `success()` in a job `if`, and why is `always()` usually the wrong fix?IntermediateWhat values can `needs.<job>.result` take?BeginnerHow does a matrix expand, and how are job names generated?BeginnerHow do `include` and `exclude` work in a matrix?IntermediateWhat do `fail-fast` and `max-parallel` do?Beginner