-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade golangci-lint to v1.50.1 (#505)
* Upgrade golangci-lint to v1.50.1 * Backport lint.yml: tendermint/tendermint@83b7f4a
- Loading branch information
Showing
5 changed files
with
39 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
name: Lint | ||
# Lint runs golangci-lint over the entire Ostracon repository | ||
# This workflow is run on every pull request and push to master | ||
# The `golangci` job will pass without running if no *.{go, mod, sum} files have been modified. | ||
name: Golang Linter | ||
# Lint runs golangci-lint over the entire Ostracon repository. | ||
# | ||
# This workflow is run on every pull request and push to main. | ||
# | ||
# The `golangci` job will pass without running if no *.{go, mod, sum} | ||
# files have been modified. | ||
# | ||
# To run this locally, simply run `make lint` from the root of the repo. | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
@@ -11,6 +17,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 8 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.18' | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
with: | ||
|
@@ -20,8 +29,7 @@ jobs: | |
go.sum | ||
- uses: golangci/[email protected] | ||
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.50.1 | ||
args: --timeout 10m | ||
github-token: ${{ secrets.github_token }} | ||
if: env.GIT_DIFF |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters