Update golang-ci and go workflow

This commit is contained in:
Daniel 2022-09-22 14:35:48 +02:00
parent 43dee31466
commit 3920412b4b
2 changed files with 9 additions and 5 deletions

View file

@ -20,14 +20,14 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '^1.18'
go-version: '^1.19'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.45.1
version: v1.49.0
only-new-issues: true
args: -c ./.golangci.yml
args: -c ./.golangci.yml --timeout 15m
- name: Get dependencies
run: go mod download
@ -45,7 +45,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '^1.18'
go-version: '^1.19'
- name: Get dependencies
run: go mod download

View file

@ -8,6 +8,7 @@ linters:
- contextcheck
- cyclop
- exhaustivestruct
- exhaustruct
- forbidigo
- funlen
- gochecknoglobals
@ -17,6 +18,7 @@ linters:
- goerr113
- gomnd
- ifshort
- interfacebloat
- interfacer
- ireturn
- lll
@ -24,6 +26,9 @@ linters:
- nilnil
- nlreturn
- noctx
- nolintlint
- nonamedreturns
- nosnakecase
- revive
- tagliatelle
- testpackage
@ -31,7 +36,6 @@ linters:
- whitespace
- wrapcheck
- wsl
- nolintlint
linters-settings:
revive: