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: prevent uncommitted artifact changes #174

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

willvedd
Copy link
Contributor

@willvedd willvedd commented Jun 20, 2024

Description

Adds checks for diffs on the generated Go files; currently we're only checking for diffs on the swagger file.

This is proven to work because of the failed diff-openapi job that is detecting the very exact thing we're trying to prevent.

Inspired by #173 which could have been detected and prevented. Once that PR is merged, this job will start passing. Update: that PR was merged and the diff-openapi job is now passing 🎉 .

References

Inspiration: #173
Proof of concept: https://github.com/openfga/api/actions/runs/9604720835/job/26490812942?pr=174

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

@willvedd willvedd marked this pull request as ready for review June 20, 2024 21:40
@willvedd willvedd requested a review from a team as a code owner June 20, 2024 21:40
Copy link
Member

@jpadilla jpadilla left a comment

Choose a reason for hiding this comment

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

@willvedd willvedd merged commit f5a955a into main Jun 20, 2024
7 checks passed
@willvedd willvedd deleted the chore-prevent-uncommitted-diffs branch June 20, 2024 21:51
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