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

Add CI check for up-to-date type generation #225

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

andrew-farries
Copy link
Collaborator

@andrew-farries andrew-farries commented Jan 10, 2024

Add a CI check to ensure that the types.go file generated from schema.json is up-to-date.

Types are generated from the schema.json file but there was no check in place to ensure that the two were consistent.

This PR runs make generate to correct an inconsistency between the definitions and the generated types and adds the check so that we can't repeat this mistake.

An example failed run where the types are out of date is here.

Ensure that type generation from `schema.json` is up-to-date.

* Check out the repo
* Run `make generate`
* Ensure that there is no diff
@andrew-farries andrew-farries merged commit f1757f3 into main Jan 10, 2024
24 checks passed
@andrew-farries andrew-farries deleted the ci-check-for-type-generation branch January 10, 2024 15:35
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