blob: 8243281c61e4c4b0398f5229caba250e2d327d9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
.PHONY: test
test: lint ## Run tests with coverage
go test -short -cover -coverprofile coverage.txt ./...
go tool cover -html=coverage.txt -o coverage.html
.PHONY: lint
lint: ## Run the code linter
revive ./...
.PHONY: clean
clean: ## Clean all test files
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}'
|