From 3bc7583466a663973ad6604343e5cf4e233924c6 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 13 Sep 2022 21:10:01 +0000 Subject: [PATCH] Handle from makefile --- .github/workflows/test.yml | 3 +-- Makefile | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b9fd2f6..2b730e8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,5 +16,4 @@ jobs: uses: actions/checkout@v2 - name: Test run: | - go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo - make kind-e2e-tests \ No newline at end of file + make deps-test kind-e2e-tests \ No newline at end of file diff --git a/Makefile b/Makefile index c1731c1..7c98cbb 100644 --- a/Makefile +++ b/Makefile @@ -190,6 +190,9 @@ controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessar $(CONTROLLER_GEN): $(LOCALBIN) GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION) +deps-test: $(LOCALBIN) + GOBIN=$(LOCALBIN) go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo + .PHONY: envtest envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. $(ENVTEST): $(LOCALBIN)