Skip to content

Commit 8364019

Browse files
Merge pull request #7 from cert-manager/add_integration_test
Add integration test to CI
2 parents 18a8512 + 76c459f commit 8364019

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

make/00_mod.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@
1515
repo_name := github.com/cert-manager/webhook-cert-lib
1616

1717
golangci_lint_config := .golangci.yaml
18+
19+
GINKGO_VERSION ?= $(shell awk '/ginkgo\/v2/ {print $$2}' test/go.mod)

make/test-unit.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,13 @@ test-unit: | $(NEEDS_GOTESTSUM) $(ARTIFACTS)
2323
./... \
2424
-- \
2525
-ldflags $(go_manager_ldflags)
26+
27+
.PHONY: test-integration
28+
## Integration tests
29+
## @category Testing
30+
test-integration: | $(NEEDS_GINKGO) $(NEEDS_ETCD) $(NEEDS_KUBE-APISERVER) $(NEEDS_KUBECTL) $(ARTIFACTS)
31+
KUBEBUILDER_ASSETS=$(CURDIR)/$(bin_dir)/tools \
32+
$(GINKGO) \
33+
--output-dir=$(ARTIFACTS) \
34+
--junit-report=junit-go-e2e.xml \
35+
./test/

0 commit comments

Comments
 (0)