Files
João WesterbergandJan Wojtas 19707a2660 fix(ci): stop every CI run from building with an empty Go cache (#1972)
Every job in the Go workflow shared one Go cache key. The guardrail job
compiles nothing and finishes first, so it saved a ~9 KB entry under that
key. The test and lint jobs then got an exact hit on it, and actions/cache
does not save on an exact hit, so their builds were never stored and every
run compiled from scratch.

Make the cache opt-in through a cache-key input on the Setup action, and
give each test and lint job its own value. Jobs that pass none, including
guardrail, nightly and apidiff, run without a cache, which is what they
effectively had.

Co-authored-by: Jan Wojtas <56300703+wojtas000@users.noreply.github.com>
2026-10-27 13:06:04 +01:00
..