From ed1019659a642065db69ff451f73c8a38d2e7f86 Mon Sep 17 00:00:00 2001 From: sundowndev <16480203+sundowndev@users.noreply.github.com> Date: Mon, 26 Feb 2024 14:18:47 +0400 Subject: [PATCH] chore: update makefile --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e28eb1c..8d7ef9f 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,8 @@ -BUF_VERSION:=v1.29.0 - install-tools: + go install gotest.tools/gotestsum@v1.11.0 go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2 - go install github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) + go install github.com/bufbuild/buf/cmd/buf@v1.29.0 build: generate buf build @@ -20,17 +19,21 @@ fmt: buf format go fmt ./... -go.mod: FORCE +go.mod: go mod tidy go mod verify go.sum: go.mod test: - $(GOTEST) --format testname --junitfile unit-tests.xml -- -mod=readonly -race -coverprofile=./c.out -covermode=atomic -coverpkg=.,./... ./... + gotestsum --format testname --junitfile unit-tests.xml -- -mod=readonly -race -coverprofile=./c.out -covermode=atomic -coverpkg=.,./... ./... coverage: test - $(GOTOOL) cover -func=cover.out + go tool cover -func=cover.out mocks: rm -rf mocks/* mockery --all + +clean: + go clean + rm -f bin/* \ No newline at end of file