14 lines
541 B
Makefile
14 lines
541 B
Makefile
PROJECT_NAME=modules
|
|
|
|
.PHONY: lint
|
|
lint: ## Линт всего проекта
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.61.0
|
|
golangci-lint run --config=./.golangci.yml ./...
|
|
|
|
.PHONY: test
|
|
test: ## Юнит тестирование всего проекта
|
|
go test -race -timeout 30s ./...
|
|
|
|
help: ## Print this help and exit
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|