From 6c0e29a5b343fca6dc174c35d673cbab6f634b2b Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Thu, 9 Mar 2023 09:02:13 +1100 Subject: [PATCH] Add `skip-pkg-cache` go `golangci-lint-action` (#345) * Add `skip-pkg-cache` go `golangci-lint-action` See golangci/golangci-lint-action#677. * Increase `golangci-lint` timeout --- .github/workflows/ci.yaml | 2 ++ .golangci.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6fc11967e..ba2cc37b9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,3 +31,5 @@ jobs: check-latest: true - uses: "golangci/golangci-lint-action@v3.4.0" + with: + skip-pkg-cache: true diff --git a/.golangci.yaml b/.golangci.yaml index baad2d3df..243aeb927 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -14,3 +14,6 @@ linters: - "structcheck" - "unconvert" - "unused" + +run: + timeout: '2m'