Upgrade golangci-lint GitHub action

This commit is contained in:
Peter 2022-03-15 17:52:16 +01:00
parent 82d205db98
commit dd86250335
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
3 changed files with 6 additions and 4 deletions

View file

@ -14,7 +14,6 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:

View file

@ -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

View file

@ -107,6 +107,8 @@ issues:
linters:
- gomnd
- funlen
new: true
fix: true
run:
build-tags: