build: Bump Go version to 1.24 in CI and update staticcheck

This commit is contained in:
Romain Bouyé
2025-05-20 13:52:47 +02:00
parent c930849f74
commit 97843ac4c9
2 changed files with 15 additions and 15 deletions

View File

@@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.23.6', '1.22.11', '1.21.13']
go: ["1.24", "1.23", "1.22"]
steps:
- uses: actions/checkout@v4

View File

@@ -35,7 +35,7 @@ checks: check_tools
false;\
fi
@STATICCHECKOUT=$$(staticcheck -go 1.23 -checks all ./...); \
@STATICCHECKOUT=$$(staticcheck -go 1.24 -checks all ./...); \
if [ -z "$$STATICCHECKOUT" ]; then\
echo "staticcheck: OK";\
else \
@@ -76,7 +76,7 @@ EXECUTABLES = goimports staticcheck govulncheck gosec
.PHONY: get_tools
get_tools:
go install golang.org/x/tools/cmd/goimports@latest
go install honnef.co/go/tools/cmd/staticcheck@2024.1.1
go install honnef.co/go/tools/cmd/staticcheck@2025.1.1
go install golang.org/x/vuln/cmd/govulncheck@latest
go install github.com/securego/gosec/v2/cmd/gosec@latest