ci: add proto generation freshness check#809
Open
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
Open
ci: add proto generation freshness check#809NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
Conversation
Add a new CI workflow that verifies proto-generated code is up to date. The workflow installs buf and the sebuf protoc plugins, runs `make generate`, and fails if any files in src/generated/ or docs/api/ differ from what is committed. This prevents proto definitions from drifting out of sync with the generated TypeScript and OpenAPI output. Closes koala73#200 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@NewCoder3294 is attempting to deploy a commit to the Elie Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Proto Generation CheckCI workflow that verifies generated code stays in sync with proto definitionsmake generate, then fails if any files insrc/generated/ordocs/api/have uncommitted changesproto/**,src/generated/**,docs/api/**, orMakefileCloses #200
How it works
The new workflow (
.github/workflows/proto-check.yml) runs on pull requests and:make install-buf install-plugins)make generateto regenerate all TypeScript client/server code and OpenAPI specsgit diff --exit-codeto verify the generated output matches what is committedTest plan
.protofile without regenerating — CI should fail with a clear message.protofile with regenerated code committed — CI should pass🤖 Generated with Claude Code