test: added makefile entry for running tests
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
a60ebf8710
commit
dee013e4e4
6
Makefile
6
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
|
||||
|
|
Loading…
Reference in New Issue