File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 5656 - name : golangci-lint
5757 uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
5858 with :
59- version : v2.1.6
59+ version : v2.5.0
6060 args : -v
Original file line number Diff line number Diff line change 1+ GO := go
2+ GOLANG_CI := github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.5.0
3+ GOVULNCHECK := golang.org/x/vuln/cmd/govulncheck@latest
4+
15# Generate labels for all language runtimes
26.PHONY : generate
37generate : run fmt
@@ -6,10 +10,13 @@ generate: run fmt
610test :
711 go test -v -count 1 ./...
812
9- .PHONY : lint
10- lint : fmt # # Run linters on all go files
11- go tool golangci-lint run -v ./...
13+ .PHONY : vulncheck
14+ vulncheck : # # Check for vulnerabilities in dependencies
15+ $( GO ) run $( GOVULNCHECK ) ./...
1216
17+ .PHONY : lint
18+ lint : fmt vulncheck # # Run linters on all go files
19+ $(GO ) run $(GOLANG_CI ) run -v
1320
1421.PHONY : fmt
1522fmt : # # Formats all go files
@@ -18,4 +25,4 @@ fmt: ## Formats all go files
1825
1926.PHONY : run
2027run :
21- go run cmd/generate/main.go
28+ go run cmd/generate/main.go
You can’t perform that action at this time.
0 commit comments