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 name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up Go 1.17 - name: Set up Go 1.17
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:

View file

@ -8,20 +8,21 @@ on:
pull_request: pull_request:
permissions: permissions:
contents: read contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option. pull-requests: read
# pull-requests: read
jobs: jobs:
golangci: golangci:
name: lint name: lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Task - name: Install Task
uses: arduino/setup-task@v1 uses: arduino/setup-task@v1
- name: Download assets - name: Download assets
run: task download-assets run: task download-assets
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v2 uses: golangci/golangci-lint-action@v3
with: with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version # 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 version: latest

View file

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