Revise go setup role and bump version

- clean go cache at the role level
- use go env GOMODCACHE for path resolution
- add become: true to prevent permission issues
- check stdout instead of stderr for go clean -x --cache
- cache cleaning is skipped by default
- fix lint errors
This commit is contained in:
ionutboangiu
2025-03-12 13:15:39 +02:00
committed by Dan Christian Bogos
parent 3545224ee6
commit 1c672c33ec
9 changed files with 50 additions and 20 deletions

View File

@@ -34,7 +34,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"
go-version: "1.24.x"
- name: Go Format
run: gofmt -s -w . && git diff --exit-code

View File

@@ -32,7 +32,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"
go-version: "1.24.x"
- name: Set up Python
uses: actions/setup-python@v5