From 9454970d045bf71738ba0529bf2bdcb23200f3c1 Mon Sep 17 00:00:00 2001 From: Charith Ellawala Date: Thu, 22 Jun 2023 17:05:11 +0100 Subject: [PATCH] chore(ci): Disable cache of Go installation for GolangCI (#1662) Disable caching in the `setup-go` step. Also removes the Go version config line from .golangci.yaml which would then force golangci-lint to pick the Go version from `go.mod`. https://github.com/golangci/golangci-lint/blob/043c368f2d6f5a4f5a46dcd1a14155cbc090ebdd/.golangci.reference.yml#L71-L74 Signed-off-by: Charith Ellawala --- .github/workflows/pr-test.yaml | 1 + .golangci.yaml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-test.yaml b/.github/workflows/pr-test.yaml index a7894a80e..52c51446e 100644 --- a/.github/workflows/pr-test.yaml +++ b/.github/workflows/pr-test.yaml @@ -178,6 +178,7 @@ jobs: with: go-version: 1.20.x check-latest: true + cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v3.6.0 with: diff --git a/.golangci.yaml b/.golangci.yaml index 29488d5d4..beef36632 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,6 +1,5 @@ --- run: - go: "1.19" timeout: 300s skip-dirs: - "^api/"