forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CI): add golangci-lint to dependencies (cosmos#10112) (cosmos#10172)
* fix(CI): add golangci-lint to dependencies (cosmos#10112) * fix(CI): add golangci-lint to dependencies * update github workflow * tidy go.mod * add missing entries to go.mod * update deps * add missing run command * remove golint and use revive instead * fix workflow setup * lint only changed files * gofmt go tags * update comments * make lint-go Co-authored-by: Marko <[email protected]> Co-authored-by: Federico Kunze Küllmer <[email protected]> * Update .golangci.yml * Update .golangci.yml * fix go.mod Co-authored-by: Marko <[email protected]> Co-authored-by: Federico Kunze Küllmer <[email protected]>
- Loading branch information
1 parent
6bb1878
commit f147026
Showing
5 changed files
with
1,438 additions
and
377 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 |
---|---|---|
|
@@ -14,37 +14,18 @@ jobs: | |
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
- uses: technote-space/[email protected] | ||
go-version: 1.16 | ||
- uses: technote-space/get-diff-action@v5 | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/*.mk | ||
Makefile | ||
**/Makefile | ||
.golangci.yml | ||
- name: Get rocksdb version | ||
run: ./.github/scripts/get-rocksdb-version.sh | ||
- name: Fix permissions for cache | ||
run: sudo chown $(whoami) /usr/local/lib /usr/local/include | ||
- name: Restore rocksdb libraries cache | ||
id: cache-rocksdb | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: | | ||
/usr/local/lib/librocksdb.* | ||
/usr/local/include/rocksdb | ||
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_VERSION }}-amd64 | ||
- name: Install rocksdb deps | ||
run: ./.github/scripts/install-rocksdb-deps.sh | ||
- name: Install rocksdb | ||
if: steps.cache-rocksdb.outputs.cache-hit != 'true' | ||
run: ./.github/scripts/install-rocksdb.sh | ||
- name: run linting (long) | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- name: run go linters | ||
run: make lint-go | ||
if: env.GIT_DIFF | ||
id: lint_long | ||
run: | | ||
|
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
Oops, something went wrong.