Files
velero/.github/workflows
Parman Mohammadalizadeh c0d13fc51f Reuse cached Go modules across CI jobs
The kind e2e jobs download every module on every run. setup-go restores
its cache from main, but push.yml runs `go clean -modcache` before
setup-go's post step saves, so main holds an empty entry (1568 bytes)
under the key PR jobs ask for. They count it as a hit, so nothing is
ever saved over it.

- push.yml: turn off setup-go's cache, since the job empties it.
- e2e-test-kind.yaml: the build job restores one module cache, downloads
  what the e2e jobs need on a miss (`go mod download` plus the ginkgo
  CLI), and saves it before the job ends. The e2e jobs restore the same
  key. It is keyed on go.mod and go.sum rather than the Go patch version,
  which differed between runner images within one run.
- pr-ci-check.yml: point GOMODCACHE at .go/pkg/mod, which the build
  container mounts, so `go mod tidy` on the host and the containerised
  steps share one download that setup-go caches.

Fixes #10653

Signed-off-by: Parman Mohammadalizadeh <prmma23@gmail.com>
2026-10-14 20:46:42 +02:00
..