tests/Makefile

15 lines
562 B
Makefile

.PHONY: tools
tools: # Устанавливает бинарки для тулзов: linter, mockgen, etc.
cd tools && go mod tidy && go mod verify && go generate -tags tools && chmod +x ../bin/*
.PHONY: lint
lint: tools # Линт на отличия от мастера
./bin/golangci-lint run --config=./golangci.yml ./...
.PHONY: test
test:
go test -race -count 100 -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}'