Update golangci-lint.yml
This commit is contained in:
parent
055fdc7126
commit
05eb619c40
42
.github/workflows/golangci-lint.yml
vendored
42
.github/workflows/golangci-lint.yml
vendored
@ -1,15 +1,27 @@
|
|||||||
- name: Run golangci-lint
|
name: golangci-lint
|
||||||
# You may pin to the exact commit or the version.
|
on:
|
||||||
# uses: golangci/golangci-lint-action@04eca2038305127fb1e6683425b6864cd5612f2d
|
push:
|
||||||
uses: golangci/golangci-lint-action@v1.2.1
|
pull_request:
|
||||||
with:
|
jobs:
|
||||||
# version of golangci-lint to use in form of v1.2.3
|
golangci:
|
||||||
version:
|
name: lint
|
||||||
# golangci-lint command line arguments
|
runs-on: ubuntu-latest
|
||||||
args: # optional, default is
|
steps:
|
||||||
# golangci-lint working directory, default is project root
|
- uses: actions/checkout@v2
|
||||||
working-directory: # optional
|
- name: golangci-lint
|
||||||
# the token is used for fetching patch of a pull request to show only new issues
|
uses: golangci/golangci-lint-action@v2
|
||||||
github-token: # default is ${{ github.token }}
|
with:
|
||||||
# if set to true and the action runs on a pull request - the action outputs only newly found issues
|
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
||||||
only-new-issues:
|
version: v1.29
|
||||||
|
|
||||||
|
# Optional: working directory, useful for monorepos
|
||||||
|
# working-directory: somedir
|
||||||
|
|
||||||
|
# Optional: golangci-lint command line arguments.
|
||||||
|
# args: --issues-exit-code=0
|
||||||
|
|
||||||
|
# Optional: show only new issues if it's a pull request. The default value is `false`.
|
||||||
|
# only-new-issues: true
|
||||||
|
|
||||||
|
# Optional: if set to true then the action will use pre-installed Go
|
||||||
|
# skip-go-installation: true
|
||||||
|
Loading…
Reference in New Issue
Block a user