Upgrade golangci-lint GitHub action
This commit is contained in:
parent
82d205db98
commit
dd86250335
3 changed files with 6 additions and 4 deletions
1
.github/workflows/go.yml
vendored
1
.github/workflows/go.yml
vendored
|
@ -14,7 +14,6 @@ jobs:
|
|||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Set up Go 1.17
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
|
|
7
.github/workflows/golangci-lint.yml
vendored
7
.github/workflows/golangci-lint.yml
vendored
|
@ -8,20 +8,21 @@ on:
|
|||
pull_request:
|
||||
permissions:
|
||||
contents: read
|
||||
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
||||
# pull-requests: read
|
||||
pull-requests: read
|
||||
jobs:
|
||||
golangci:
|
||||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Go 1.17
|
||||
uses: actions/setup-go@v2
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@v1
|
||||
- name: Download assets
|
||||
run: task download-assets
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
|
||||
version: latest
|
||||
|
|
|
@ -107,6 +107,8 @@ issues:
|
|||
linters:
|
||||
- gomnd
|
||||
- funlen
|
||||
new: true
|
||||
fix: true
|
||||
|
||||
run:
|
||||
build-tags:
|
||||
|
|
Loading…
Reference in a new issue