-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (22 loc) · 585 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
.PHONY: default build check fmt analysis test test-ci coverage-report coverage-check golangci-lint
default: check
build:
@go build -v ./...
check: build analysis test
fmt:
@go fmt ./...
analysis:
@.ci/check-format.sh
@go vet ./...
coverage-report:
@.ci/coverage-report.sh 0
coverage-check:
@.ci/coverage-report.sh 80
test-opts=
test:
@go install gotest.tools/gotestsum@latest
@gotestsum ${test-opts} -- -cover ./...
test-ci: test-opts=--junitfile unit-test.xml
test-ci: test
golangci-lint:
@golangci-lint run -E gosec -E bodyclose -E cyclop -E exhaustive -E godox