modules/Makefile

14 lines
541 B
Makefile
Raw Normal View History

2023-03-01 08:53:18 +00:00
PROJECT_NAME=modules
2020-12-07 17:20:23 +00:00
2023-03-01 08:53:18 +00:00
.PHONY: lint
lint: ## Линт всего проекта
2024-09-10 09:58:51 +00:00
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.61.0
2023-04-18 15:00:31 +00:00
golangci-lint run --config=./.golangci.yml ./...
2020-12-07 17:20:23 +00:00
2023-03-01 08:53:18 +00:00
.PHONY: test
test: ## Юнит тестирование всего проекта
2024-09-10 09:48:02 +00:00
go test -race -timeout 30s ./...
2023-03-01 08:53:18 +00:00
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}'