chore; bump go 1.20

main
sudo pacman -Syu 2023-02-21 16:59:05 +07:00
parent cdf7a6cae6
commit bb7b5a789f
3 changed files with 14 additions and 13 deletions

View File

@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
check-latest: true
cache: true
- run: go test -race -failfast .
@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
check-latest: true
cache: true
- run: go build
@ -43,7 +43,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
check-latest: true
cache: true
- uses: golangci/golangci-lint-action@v3

View File

@ -17,7 +17,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: "1.19"
go-version: "1.20"
check-latest: true
cache: true
- uses: goreleaser/goreleaser-action@v2

View File

@ -9,7 +9,6 @@ run:
- ".*Mock.*"
- ".*_mock.*"
- ".*_generated.*"
go: "1.18"
output:
sort-results: true
@ -17,21 +16,21 @@ output:
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- varcheck
- errchkjson
- errname
- errorlint
- execinquery
- gocritic
- goerr113
- gofumpt
- gosec
- ifshort
- importas
- makezero
- nilnil
@ -42,7 +41,10 @@ linters:
linters-settings:
gosec:
excludes:
- G101
- G112
- G402
- G404
- G501
- G505
exclude-generated: true
@ -66,9 +68,8 @@ linters-settings:
- unreachable
- unusedresult
staticcheck:
go: "1.18"
checks: ["all", "-SA1019"]
issues:
new: true
fix: true
gocritic:
enabled-tags:
- style
- performance