-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (31 loc) · 791 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
30
31
32
33
34
35
36
37
38
39
build:
go build -o ./.bin/spec2go ./cmd
foo-bar:
./.bin/spec2go ./v1.yml
help:
@echo "Management commands"
@echo ""
@echo "Usage:"
@echo " ## Root Commands"
@echo " make build Build application."
@echo " make test Run tests on all projects."
@echo " make lint Run static code analysis (lint)."
@echo " make format Run code formatter."
@echo " make tidy Run go mod tidy."
@echo " make sec Run gosec."
@echo ""
@echo " ## Utility Commands"
@echo " make setup-git-hooks Setup git hooks."
@echo ""
test:
go test -v ./... ./...
lint:
./shell/make.sh "lint"
format:
./shell/make.sh "format"
setup-git-hooks:
./shell/make.sh "setupGitHooks"
tidy:
go mod tidy
sec:
gosec ./...