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

Bug - 2725 - Fix Schema Check Action #2738

Merged
merged 4 commits into from
May 16, 2022

Conversation

esizer
Copy link
Member

@esizer esizer commented May 13, 2022

Resolves #2725

Summary

Our check-lighthouse-schema.yml workflow was passing with errors due to a bug with the chosen action. This PR replaces the existing library with a simple custom command which is properly reporting failures as seen in the test PR.

Screenshot

Failing on Purpose

Ref: https://github.com/GCTC-NTGC/gc-digital-talent/runs/6427201880?check_suite_focus=true

Screen Shot 2022-05-13 at 1 14 02 PM

Success with No Changes

Screen Shot 2022-05-13 at 1 34 47 PM

@esizer esizer marked this pull request as draft May 13, 2022 17:24
@esizer esizer marked this pull request as ready for review May 13, 2022 17:35
Comment on lines 19 to 20
with:
ref: ${{ github.head_ref }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we'd want to leave this as it was before? The checkout action is smart about this, and uses GITHUB_REF provided by GitHub, which already varies based on the trigger event: a merge commit for pull_request triggers, and HEAD ref on push triggers.

Did you mean to make this change, or were just copying from the previous actions README?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, I was just following the README and it worked so I didn't change anything.

Copy link
Contributor

@patcon patcon left a comment

Choose a reason for hiding this comment

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

Aside from my comment for your consideration, looks good to me!

@esizer esizer merged commit 71e72a5 into main May 16, 2022
@esizer esizer deleted the bug/2725-schema-check-action-not-failing branch May 16, 2022 12:50
@petertgiles petertgiles mentioned this pull request May 17, 2022
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.

Github Action - Schema Check - misses changes
2 participants