-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (24 loc) · 772 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help
.PHONY: gen
gen: ## GEN - Generate mocks and interfaces
# generate mocks...
@go generate ./...
.PHONY: install
install: ## INSTALL - Install dependencies for mock and interfaces
# install ifacemaker...
go install github.com/vburenin/ifacemaker@latest
# install mockgen...
go install go.uber.org/mock/mockgen@latest
# install govulncheck...
go install golang.org/x/vuln/cmd/govulncheck@latest
.PHONY: vuln
vuln: ## VULN - Check for vulnerabilities
# check for vulnerabilities...
@govulncheck -show verbose ./...
.PHONY: test
test: ## TEST - Run tests
# run tests...
@go test -v ./...