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

Fail the Github Action step when gofmt fails #65

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

MarkKremer
Copy link
Collaborator

In an oversight I hadn't noticed that gofmt doesn't change its exit code when the code isn't properly formatted. This PR captures the output and manually tests it to return a proper exit code to make the pipeline fail if something isn't right.

Copy link
Member

@mewmew mewmew left a comment

Choose a reason for hiding this comment

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

LGTM

@mewmew mewmew merged commit bc22414 into mewkiz:master Oct 27, 2023
2 checks passed
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