Skip to content

Commit

Permalink
KUBESAW-124: Makefile target for dependency validations (#440)
Browse files Browse the repository at this point in the history
* KUBESAW-124: Makefile target for dependency validations

Signed-off-by: Feny Mehta <fbm3307@gmail.com>

* lint-go-code

Signed-off-by: Feny Mehta <fbm3307@gmail.com>

* renaming build.mk to go.mk and adding verify comand to it

Signed-off-by: Feny Mehta <fbm3307@gmail.com>

---------

Signed-off-by: Feny Mehta <fbm3307@gmail.com>
  • Loading branch information
fbm3307 authored Jun 27, 2024
1 parent cb20ce7 commit 0a3128a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions make/build.mk → make/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,16 @@ ifneq ($(shell git status -s | grep deploy/registration-service.yaml),)
@echo "## Run 'make copy-reg-service-template' and send PR ##"
@echo "#########################################################################"
endif

.PHONY: verify-dependencies
## Runs commands to verify after the updated dependecies of toolchain-common/API(go mod replace), if the repo needs any changes to be made
verify-dependencies: tidy vet build test lint-go-code

.PHONY: tidy
tidy:
go mod tidy

.PHONY: vet
vet:
go vet ./...

0 comments on commit 0a3128a

Please sign in to comment.