Skip to content

Commit

Permalink
Add fmt and vet to integration-test step
Browse files Browse the repository at this point in the history
Since the `make test` does not run on new pull requests anymore
and only `make integration-test` runs, we need `make vet fmt`
as precondition to `make integration-test`.
  • Loading branch information
cimnine committed Feb 2, 2021
1 parent bad9807 commit f11d280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -31,7 +31,7 @@ test: fmt vet ## Run tests
#integration-test: export ENVTEST_K8S_VERSION = 1.20.2
integration-test: export ENVTEST_K8S_VERSION = 1.19.2
integration-test: export KUBEBUILDER_ATTACH_CONTROL_PLANE_OUTPUT = $(INTEGRATION_TEST_DEBUG_OUTPUT)
integration-test: generate $(testbin_created) ## Run integration tests with envtest
integration-test: generate fmt vet $(testbin_created) ## Run integration tests with envtest
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || \
curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/master/hack/setup-envtest.sh
source ${ENVTEST_ASSETS_DIR}/setup-envtest.sh; \
Expand Down

0 comments on commit f11d280

Please sign in to comment.