-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk-go/ci: upgrade golangci-lint (#112)
- Loading branch information
1 parent
d78463c
commit 10854d1
Showing
5 changed files
with
6 additions
and
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
golang 1.20.3 | ||
golang 1.21.3 |
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 |
---|---|---|
|
@@ -18,17 +18,13 @@ clean: ## Cleanup any build binaries or packages. | |
$(RM) -r $(BINDIR) | ||
$(RM) coverage.txt | ||
|
||
.PHONY: build-deps | ||
build-deps: ## Install build dependencies | ||
@echo "==> $@" | ||
|
||
.PHONY: build | ||
build: ## Builds dynamic executables and/or packages. | ||
@echo "==> $@" | ||
@go build -o $(BINDIR)/$(NAME) | ||
|
||
.PHONY: lint | ||
lint: build-deps ## Verifies `golint` passes. | ||
lint: | ||
@echo "==> $@" | ||
@VERSION=$$(go run github.com/mikefarah/yq/[email protected] '.jobs.lint.steps[] | select(.uses == "golangci/golangci-lint-action*") | .with.version' .github/workflows/lint.yaml) && \ | ||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@$$VERSION run ./... | ||
|