Skip to content

Commit

Permalink
New e2e-local-gh-actions target for mimicking github e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Baarsgaard committed Oct 16, 2024
1 parent 98bace6 commit f75d093
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,18 @@ bundle/redhat: BUNDLE_GEN_FLAGS += --use-image-digests
bundle/redhat: bundle

# e2e
.PHONY: e2e-kind
e2e-kind:
ifeq (,$(shell kind get clusters $(KIND_CLUSTER_NAME)))
kind --kubeconfig="${KUBECONFIG}" create cluster --image=kindest/node:v$(ENVTEST_K8S_VERSION) --config tests/e2e/kind.yaml
endif

.PHONY: e2e-local-gh-actions
e2e-local-gh-actions: e2e-kind ko-build-kind e2e

.PHONY: e2e
e2e: chainsaw install deploy-chainsaw ## Run e2e tests using chainsaw.
$(CHAINSAW) test --test-dir ./tests/e2e
$(CHAINSAW) test --test-dir ./tests/e2e/$(TESTS)

# Find or download chainsaw
chainsaw:
Expand Down

0 comments on commit f75d093

Please sign in to comment.