Skip to content

Commit

Permalink
Update github actions.
Browse files Browse the repository at this point in the history
- v3 of golint removed the go-setup dependency: golangci/golangci-lint-action#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 <bwinter@vmware.com>
  • Loading branch information
bwinter committed Apr 24, 2023
1 parent 6fce13a commit dbd2ef4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/golangci-lint.yml
Expand Up @@ -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
Expand Down

0 comments on commit dbd2ef4

Please sign in to comment.