diff --git a/Makefile b/Makefile index 0f85de67..a2d1d432 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ GOPATH := $(shell go env GOPATH) VERSION := $(shell cat ./version) LDFLAGS := "-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)'" -all: run install build clean format check static +all: run test install build clean format check static run: @go run -ldflags=$(LDFLAGS) $(ABRA) @@ -26,3 +26,7 @@ check: static: @staticcheck $(ABRA) + +test: + @go test ./config -cover + @go test ./client -cover