chore: improve Makefile
parent
65e11e0c12
commit
5a2dfbb144
11
Makefile
11
Makefile
|
@ -1,7 +1,10 @@
|
||||||
.PHONY: all test test-color coverage coverage-cli coverate-html lint format build
|
.PHONY: all test test-color coverage coverage-cli coverate-html lint format build
|
||||||
|
|
||||||
all: test-color lint format
|
all:
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
$(MAKE) test-color
|
||||||
|
$(MAKE) lint
|
||||||
|
$(MAKE) format
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -race -failfast ./...
|
go test -race -failfast ./...
|
||||||
|
@ -13,10 +16,12 @@ test-color:
|
||||||
coverage:
|
coverage:
|
||||||
go test -coverprofile=coverage.out ./...
|
go test -coverprofile=coverage.out ./...
|
||||||
|
|
||||||
coverage-cli: coverage
|
coverage-cli:
|
||||||
|
$(MAKE) coverage
|
||||||
go tool cover -func=coverage.out
|
go tool cover -func=coverage.out
|
||||||
|
|
||||||
coverage-html: coverage
|
coverage-html:
|
||||||
|
$(MAKE) coverage
|
||||||
go tool cover -html=coverage.out
|
go tool cover -html=coverage.out
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
|
Loading…
Reference in New Issue