armada
armada copied to clipboard
Normalize cache plugins for Go compilation & image construction
The test
, lint
, and release
workflows use the magnetikonline/action-golang-cache
plug-in, however, the build
workflow uses the and actions/setup-go
and actions/cache
plug-ins - both could be replaced by using just magnetikonline/action-golang-cache
.
- Instead of specifying
go-version: '1.20'
, it could usego-version-file: go.mod
to have it automatically select the Go version fromgo.mod
-
build.yml
usesactions/cache
just for caching/home/runner/go/bin
- we could also use it for$HOME/.cache/go-build
and$HOME/go/pkg/mod
- see https://github.com/actions/cache/blob/main/examples.md#go---modules
@richscott I want to work on this issue
@Shreya111111 Sure - Pull Requests are always welcomed!