test: added makefile entry for running tests
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Roxie Gibson 2021-07-19 14:38:19 +01:00
parent a60ebf8710
commit dee013e4e4
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D
1 changed files with 5 additions and 1 deletions

View File

@ -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