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

Add an all-checks capstone shard to CI #779

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

RBusarow
Copy link
Collaborator

@RBusarow RBusarow commented Nov 2, 2023

https://github.com/re-actors/alls-green

One shard requires that all the others are green or skipped. This single shard can be added as a required check in GitHub's branch protection rules, then never touched again. When adding a new shard to the workflow, you just add its name to the "needs" list and you're done.

And yes, it supports matrix strategies without needing to maintain a list of all the permutations.

https://github.com/re-actors/alls-green

One shard requires that all the others are green or skipped.  This single shard can be added as a required check in GitHub's branch protection rules, then never touched again.  When adding a new shard to the workflow, you just add its name to the "needs" list and you're done.

And yes, it supports matrix strategies without needing to maintain a list of all the permutations.
@RBusarow RBusarow marked this pull request as ready for review November 2, 2023 23:50
Comment on lines +294 to +297
- name: require that all other jobs have passed
uses: re-actors/alls-green@release/v1
with:
allowed-skips: publish-snapshot
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I love that this is explicit. I was about to leave a comment on how we handle skips before seeing it 😁

@RBusarow RBusarow merged commit ffc0813 into main Nov 20, 2023
20 checks passed
@RBusarow RBusarow deleted the rick/all-checks-shard branch November 20, 2023 21:57
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.

2 participants