aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 939d909..4f4a3fc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,13 @@
.PHONY: test
-test: lint ## Run tests with coverage
+test: lint
go test -race -short -cover -coverprofile coverage.txt ./... \
&& go tool cover -func=coverage.txt
.PHONY: lint
-lint: ## Run the code linter
- revive ./...
+lint:
+ go vet ./...
.PHONY: clean
-clean: ## Clean all test files
+clean:
rm -rf coverage*
-
-.PHONY: help
-help:
- grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) |sort \
- |awk 'BEGIN{FS=":.*?## "};{printf "\033[36m%-30s\033[0m %s\n",$$1,$$2}'