Update golangci-lint-action and golang-ci versions. (#8255)

Also specify Go toolchain version in actions (now required).
This commit is contained in:
M. J. Fromberger
2022-04-05 08:19:58 -07:00
committed by GitHub
parent 2c553d735a
commit 1e32a149dd
2 changed files with 6 additions and 3 deletions

View File

@@ -14,16 +14,19 @@ jobs:
timeout-minutes: 8
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/setup-go@v2
with:
go-version: '^1.16'
- uses: technote-space/get-diff-action@v5
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: golangci/golangci-lint-action@v2.5.2
- uses: golangci/golangci-lint-action@v3.1.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.42.1
version: v1.45
args: --timeout 10m
github-token: ${{ secrets.github_token }}
if: env.GIT_DIFF

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/tendermint/tendermint
go 1.15
go 1.16
require (
github.com/BurntSushi/toml v1.0.0