From bb7b5a789fbe93d6b93eddacee8cdfc7f2d50644 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Tue, 21 Feb 2023 16:59:05 +0700 Subject: [PATCH] chore; bump go 1.20 --- .github/workflows/go.yaml | 6 +++--- .github/workflows/goreleaser.yaml | 2 +- .golangci.yml | 19 ++++++++++--------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index f4d05c5..b235113 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -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 diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 84c7830..9ce35de 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -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 diff --git a/.golangci.yml b/.golangci.yml index 6f791d2..4e03a03 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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