Makefile: Add test target

This commit is contained in:
Manuel Rüger
2023-01-05 11:25:14 +01:00
parent 7eb7ccc68e
commit 721dd1b642
2 changed files with 4 additions and 0 deletions

View File

@@ -18,6 +18,9 @@ build:
-ldflags "-X main.version=$(VERSION)" \
-gcflags "-trimpath $(GOPATH)/src"
test:
go test -race -coverprofile=profile.cov ./...
image:
@echo :: building image $(NAME):$(VERSION)
@docker build -t $(NAME):$(VERSION) -f Dockerfile .