Update Go version to 1.24 (#3167)

* Update Go version to 1.24
* Update golangci-lint version
* Add envtest to tool
* Add dashboard linter as a tool
* Uset t.Cleanup

---------

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2025-02-14 18:52:08 +05:30
committed by GitHub
parent 5eed09a8fc
commit 7119380716
25 changed files with 530 additions and 128 deletions
-5
View File
@@ -33,10 +33,5 @@ jobs:
with:
go-version-file: "go.mod"
- name: Install dashboard linter
run: |
go get github.com/grafana/dashboard-linter
go install github.com/grafana/dashboard-linter
- name: Run dashboard linter
run: ./hack/lint-dashboards.sh
+2 -2
View File
@@ -17,7 +17,7 @@ on:
- go.sum
env:
GOLANGCI_LINT_VERSION: v1.63.4
GOLANGCI_LINT_VERSION: v1.64.4
GOLANGCI_LINT_TIMEOUT: 5m
permissions:
@@ -51,7 +51,7 @@ jobs:
go mod download
- name: Run golangci-lint
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0
uses: golangci/golangci-lint-action@051d91933864810ecd5e2ea2cfd98f6a5bca5347 # v6.3.2
with:
skip-cache: true
version: ${{ env.GOLANGCI_LINT_VERSION }}
+2 -2
View File
@@ -87,7 +87,7 @@ jobs:
- name: Install Skaffold
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v2.13.2/skaffold-linux-amd64
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v2.14.0/skaffold-linux-amd64
sudo install skaffold /usr/local/bin/
skaffold version
@@ -235,7 +235,7 @@ jobs:
- name: Install Skaffold
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v2.13.2/skaffold-linux-amd64
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v2.14.0/skaffold-linux-amd64
sudo install skaffold /usr/local/bin/
skaffold version