diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 5fcfa1a7..5f8128bc 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - target: ["lint", "test-bootstrap", "test-controlplane"] + target: ["lint", "test-bootstrap", "test-controlplane", "test-common"] steps: - name: checkout diff --git a/Makefile b/Makefile index 0deca74f..900c9c0d 100644 --- a/Makefile +++ b/Makefile @@ -120,6 +120,9 @@ BOOTSTRAP_IMG ?= $(REGISTRY)/bootstrap-controller:$(BOOTSTRAP_IMG_TAG) CONTROLPLANE_IMG_TAG ?= $(RELEASE_TAG) CONTROLPLANE_IMG ?= $(REGISTRY)/controlplane-controller:$(CONTROLPLANE_IMG_TAG) +test-common: + go test $(shell pwd)/pkg/... -coverprofile cover.out + all-bootstrap: manager-bootstrap # Run tests