Browse Source

Fix golangci-lint action.

- Bump the base golangci-lint version to 1.44, drop the patch version.
- Explicitly include actions/setup-go (v3 no longer does it implicitly).
- Specify a specific range of Go toolchain version.
pull/8074/head
M. J. Fromberger 3 years ago
parent
commit
536df6f295
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      .github/workflows/lint.yml

+ 4
- 1
.github/workflows/lint.yml View File

@ -14,6 +14,9 @@ jobs:
timeout-minutes: 8
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: '^1.17'
- uses: technote-space/get-diff-action@v6.0.1
with:
PATTERNS: |
@ -23,7 +26,7 @@ jobs:
- uses: golangci/golangci-lint-action@v3.1.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.42.1
version: v1.44
args: --timeout 10m
github-token: ${{ secrets.github_token }}
if: env.GIT_DIFF

Loading…
Cancel
Save