-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Introduce a meta job for the tests #166
base: master
Are you sure you want to change the base?
Conversation
When adding GitHub protection rules for a job, one needs to select the jobs based on the name, for example here "coding standards / coding standards". However, for jobs that are issued from a matrix, like here the unit test, one needs to add "unit tests / PHP 8.1 - Symfony 5.4.* - Composer --prefer-stable", "unit tests / PHP 8.2 - Symfony 5.4.* - Composer --prefer-stable" and co. manually. This is both tedious to add and to keep up to date as any change in the matrix result in this rule to be outdated. This PR introduces a very simple solution: have a meta job that passes if and only if all of the unit tests passes. This way we can have a rule for this job instead, which has a fixed label.
…ecration chore: Fix Bamarni plugin deprecations
@chalasr ready (beware it does require you to update the repository settings to add the "tests status" job as a required job for the |
Sadly I don't have enough permissions to access this repository's settings, so merging this would require some real-time round trips with @thephpleague/oauth2-server-bundle maintainers that I can't afford at the moment. |
@chalasr can you check if it works now? |
@frankdejonge all good, thanks! |
When adding GitHub protection rules for a job, one needs to select the jobs based on the name, for example here "coding standards / coding standards".
However, for jobs that are issued from a matrix, like here the unit test, one needs to add
unit tests / PHP 8.1 - Symfony 5.4.* - Composer --prefer-stable
,unit tests / PHP 8.2 - Symfony 5.4.* - Composer --prefer-stable
and co. manually. This is both tedious to add and to keep up to date as any change in the matrix result in this rule to be outdated.This PR introduces a very simple solution: have a meta job that passes if and only if all of the unit tests passes. This way we can have a rule for this job instead, which has a fixed label.