From dbd2ef4f1ef5b05ac0d0f43ba5fb09b487aa686e Mon Sep 17 00:00:00 2001 From: Brendan Winter Date: Thu, 20 Apr 2023 15:19:46 -0700 Subject: [PATCH] Update github actions. - v3 of golint removed the go-setup dependency: https://github.com/golangci/golangci-lint-action/pull/403 - Make the checkout step in the linter match the release config. - Good to be consistent so it's easier to tell your linting will pass release. Signed-off-by: Brendan Winter --- .github/workflows/golangci-lint.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 8c9eda3..516b941 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -6,11 +6,15 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: version: v1.52.2 + skip-cache: true skip-pkg-cache: true skip-build-cache: true args: --issues-exit-code=1