api-crowler/Makefile

15 lines
579 B
Makefile

VERSION=$(shell date +%Y.%m)
PROJECT_NAME=w3back
.PHONY: lint
lint: ## Линт всего проекта
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.51.1
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}'