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 🎉 .
[x] 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]
[x] The correct base branch is being used, if not main
[x] I have added tests to validate that the change in functionality is working as expected
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
main