Skip to content

Commit

Permalink
Makefile: Add test target
Browse files Browse the repository at this point in the history
  • Loading branch information
mrueg committed Jan 5, 2023
1 parent 7eb7ccc commit 721dd1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/testdata
.idea/
/mark.test
/profile.cov
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit 721dd1b

Please sign in to comment.