Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For a long time, GOV.UK had a convention whereby repositories had to specify a status check called 'test', which should be the name of the CI job that runs a repo's tests, linter, and so on. These would all run under the 'test' job, usually via something like
bundle exec rake
.In January 2023, a new convention was established, whereby there would now be an overall workflow called 'CI'. Within this workflow, there would be several individual jobs, each with their own responsibility (e.g. 'test-ruby' for running tests, 'lint-ruby' for running the linter, and so on).
We should therefore no longer look for a 'test' job: the modern equivalent is to check for the 'CI' workflow, and to validate that every job within the CI workflow passes.
Note that as a stopgap, we temporarily stopped looking for a 'test' job and switched to looking for a 'test-ruby' job instead. This is suboptimal as it only checks for the outcome of the unit tests, and doesn't consider other checks such as the linter, so it will incorrectly try and fail to approve and merge PRs whose unit tests pass but where there is another check failing.