-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 720 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 720 Bytes
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
.DEFAULT_GOAL := default
.PHONY: test
test:
gotestsum ./...
.PHONY: test-verbose
test-verbose:
gotestsum --format standard-verbose ./...
.PHONY: coverage
coverage:
go test -coverpkg=./... -coverprofile=coverage.out ./... && go tool cover -func coverage.out && rm coverage.out
.PHONY: coverage-persist
coverage-persist:
go test -coverpkg=./... -coverprofile=coverage.out ./... && go tool cover -func coverage.out
.PHONY: install-gotestsum
install-gotestsum:
go get github.com/gotestyourself/gotestsum
.PHONY: install-linter
install-linter:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1
.PHONY: lint
lint:
golangci-lint run