Update golangci-lint action

This commit is contained in:
Gabe Kangas
2022-03-07 00:20:47 -08:00
parent c64113329f
commit 5dd3ce5c44

View File

@@ -3,9 +3,12 @@ on:
push: push:
pull_request: pull_request:
permissions:
contents: read
jobs: jobs:
golangci: golangci:
name: lint name: Go linter
if: ${{ github.actor != 'dependabot[bot]' }} if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -13,12 +16,10 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: golangci-lint
- uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v2 uses: golangci/golangci-lint-action@v2
with: 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 only-new-issues: true