Skip to content

ci: add proto generation freshness check#809

Open
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294:ci/proto-generation-check
Open

ci: add proto generation freshness check#809
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294:ci/proto-generation-check

Conversation

@NewCoder3294
Copy link
Contributor

Summary

  • Adds a new Proto Generation Check CI workflow that verifies generated code stays in sync with proto definitions
  • Installs buf and sebuf protoc plugins, runs make generate, then fails if any files in src/generated/ or docs/api/ have uncommitted changes
  • Triggers only on PRs that modify proto/**, src/generated/**, docs/api/**, or Makefile

Closes #200

How it works

The new workflow (.github/workflows/proto-check.yml) runs on pull requests and:

  1. Sets up Go 1.23
  2. Installs buf CLI and the sebuf protoc plugins (make install-buf install-plugins)
  3. Runs make generate to regenerate all TypeScript client/server code and OpenAPI specs
  4. Uses git diff --exit-code to verify the generated output matches what is committed
  5. Fails with a clear error message if generated code is out of date

Test plan

  • Open a PR that modifies a .proto file without regenerating — CI should fail with a clear message
  • Open a PR that modifies a .proto file with regenerated code committed — CI should pass
  • Open a PR that does not touch proto-related paths — workflow should not run

🤖 Generated with Claude Code

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>
@vercel
Copy link

vercel bot commented Mar 2, 2026

@NewCoder3294 is attempting to deploy a commit to the Elie Team on Vercel.

A member of the Team first needs to authorize it.

@koala73 koala73 added Ready to Merge PR is mergeable, passes checks, and adds value High Value Meaningful contribution to the project labels Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Value Meaningful contribution to the project Ready to Merge PR is mergeable, passes checks, and adds value

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add proto code generation to CI/CD pipeline

2 participants