Skip to content

Commit

Permalink
chore(ci): Disable cache of Go installation for GolangCI (#1662)
Browse files Browse the repository at this point in the history
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 <charith@cerbos.dev>
  • Loading branch information
charithe committed Jun 22, 2023
1 parent ad6928b commit 9454970
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/pr-test.yaml
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion .golangci.yaml
@@ -1,6 +1,5 @@
---
run:
go: "1.19"
timeout: 300s
skip-dirs:
- "^api/"
Expand Down

0 comments on commit 9454970

Please sign in to comment.