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

[tests] Fix summary workflow to always run #10048

Merged
merged 8 commits into from
May 31, 2023
Merged

Conversation

styfle
Copy link
Member

@styfle styfle commented May 31, 2023

Description

This ensures the Summary job always runs to check if any test failed and cause itself to fail as well.

This allows us to dynamically add as many concurrent jobs as we want but only have one (Summary) marked as required.

Testing

I verified this worked by making a change to @vercel/static-config which is not required and the Summary check failed:

https://github.com/vercel/vercel/actions/runs/5136560652/jobs/9243924596

Then I reverted it so that the test was passing and the Summary check passed:

https://github.com/vercel/vercel/actions/runs/5137401343/jobs/9245554297

@changeset-bot
Copy link

changeset-bot bot commented May 31, 2023

⚠️ No Changeset found

Latest commit: 2ff02a8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@styfle styfle changed the title [tests] Fix conclusion workflow to always run [tests] Fix summary workflow to always run May 31, 2023
@styfle styfle marked this pull request as ready for review May 31, 2023 22:09
TooTallNate
TooTallNate previously approved these changes May 31, 2023
steps:
- name: Done
run: echo "Done."
- run: |-
Copy link
Member

Choose a reason for hiding this comment

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

Should we add a name? Currently it shows as "Run for status in failure" or "Run for status in success"

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 2ff02a8

@styfle styfle requested a review from TooTallNate May 31, 2023 22:16
@styfle styfle merged commit e6b2980 into main May 31, 2023
102 checks passed
@styfle styfle deleted the fix-conclusion-workflow branch May 31, 2023 22:24
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.

None yet

2 participants