-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make: moved tooling versioning within a tools/ folder
- Loading branch information
1 parent
94981b6
commit f51acdc
Showing
7 changed files
with
1,844 additions
and
20 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 |
---|---|---|
|
@@ -4,14 +4,18 @@ COVERAGE_FILE := coverage.out | |
REPOSITORY := mvisonneau/$(NAME) | ||
.DEFAULT_GOAL := help | ||
|
||
.PHONY: install-tools | ||
install-tools: ## Install required tools | ||
@cd tools; grep _ tools.go | awk -F'"' '{print $$2}' | xargs -tI % go install % | ||
|
||
.PHONY: fmt | ||
fmt: ## Format source code | ||
go run mvdan.cc/gofumpt@v0.6.0 -w $(shell git ls-files **/*.go) | ||
go run github.com/daixiang0/gci@v0.13.4 write -s standard -s default -s "prefix(github.com/mvisonneau)" . | ||
gofumpt -w $(shell git ls-files **/*.go) | ||
gci write -s standard -s default -s "prefix(github.com/mvisonneau)" . | ||
|
||
.PHONY: lint | ||
lint: ## Run all lint related tests upon the codebase | ||
go run github.com/golangci/golangci-lint/cmd/[email protected] run -v --fast | ||
golangci-lint run -v --fast | ||
|
||
.PHONY: test | ||
test: ## Run the tests against the codebase | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build tools | ||
|
||
package tools | ||
|
||
import ( | ||
_ "github.com/daixiang0/gci" | ||
_ "github.com/golangci/golangci-lint/cmd/golangci-lint" | ||
_ "github.com/goreleaser/goreleaser/v2" | ||
_ "mvdan.cc/gofumpt" | ||
) |