Files
worldmonitor/.github/workflows
Nicolas Dos Santos cc1690cfa1 ci: add proto generation freshness check (#809)
* ci: add proto generation freshness check

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 #200

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(ci): detect untracked generated files and self-trigger workflow

- Add untracked file check via git ls-files after git diff to catch
  new files created by make generate that weren't committed (P1)
- Add proto-check.yml to paths filter so the workflow triggers when
  the workflow itself is modified (P2)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* perf(ci): cache ~/go/bin for proto generation workflow

Add actions/cache step for Go binaries (buf CLI, protoc plugins) keyed
on Makefile hash. Saves ~30-60s on repeat runs by skipping reinstall.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Elie Habib <elie.habib@gmail.com>
Co-authored-by: Sebastien Melki <sebastien@anghami.com>
2026-03-13 12:43:46 +04:00
..