Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

theofidry
Copy link
Contributor

@theofidry theofidry commented Oct 1, 2023

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.

theofidry and others added 6 commits October 1, 2023 08:54
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
@theofidry
Copy link
Contributor Author

@chalasr ready (beware it does require you to update the repository settings to add the "tests status" job as a required job for the master branch

@chalasr
Copy link
Member

chalasr commented Nov 30, 2023

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.
/cc @Sephster in case you feel generous and confident enough to upgrade me :)

@frankdejonge
Copy link
Member

@chalasr can you check if it works now?

@chalasr
Copy link
Member

chalasr commented Nov 30, 2023

@frankdejonge all good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants