Update golangci-lint action

This commit is contained in:
Gabe Kangas 2022-03-07 00:20:47 -08:00
parent c64113329f
commit 5dd3ce5c44
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -3,9 +3,12 @@ on:
push:
pull_request:
permissions:
contents: read
jobs:
golangci:
name: lint
name: Go linter
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
@ -13,12 +16,10 @@ jobs:
with:
fetch-depth: 0
- name: golangci-lint
- uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Optional: golangci-lint command line arguments.
args: --timeout 5m0s
# Optional: working directory, useful for monorepos
# working-directory: somedir
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true