operator-controller
operator-controller copied to clipboard
Improve GitHub actions caching by taking bingo modules into account
Need to add cache-dependency-path
configuration option into setup-go
GitHub action to improve caching.
Background: we introduced bingo in OLMv1 repos for managing tools and it created a bunch of modules in the .bingo
directory in each repo. It works well, but on every job we download these dependencies from internet instead of using cache. This happens becuase setup-go
GitHub action only looks into project root for go.sum
and builds cache based on it.
cache-dependency-path
needs to be added to all OLMv1 repos and it should speed up our builds (we've seen decrease in build time of ~3 minutes in https://github.com/operator-framework/olm-docs).