Skip to content

Commit

Permalink
Fix golangci-lint action.
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
M. J. Fromberger committed Mar 7, 2022
1 parent 14cae18 commit 536df6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit 536df6f

Please sign in to comment.