From 50973a9273152c4074057dc774841c63f9759269 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Sat, 24 Jun 2023 15:09:40 -0400 Subject: [PATCH] Adding stringer and generate targets --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 185a80f..55a1dfd 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,10 @@ release-minor: bump-minor git-push release-patch: bump-patch git-push -setup: setup-dirs setup-build setup-format setup-lint setup-reports setup-bump +setup: setup-dirs setup-build setup-format setup-lint setup-reports setup-bump setup-stringer + +setup-stringer: + go install golang.org/x/tools/cmd/stringer@latest setup-bump: go install github.com/guilhem/bump@latest @@ -149,10 +152,13 @@ format: dep: $(GODEP) $(PKG)/... +gen: + $(GOCMD) generate + lint: setup-dirs dep $(GOLINT) "$(PKGDIR)" | tee "$(RPTDIR)/lint.out" -check: setup-dirs clean dep +check: setup-dirs clean dep setup-stringer gen $(GOTEST) $$(go list "$(PKG)/..." | grep -v /vendor/) | tee "$(RPTDIR)/test.out" bench: setup-dirs clean dep