From 2cc0c3bc0c67536bceeaf5b174be593689227ebc Mon Sep 17 00:00:00 2001 From: Cannon Palms Date: Fri, 17 Nov 2023 13:58:56 -0500 Subject: [PATCH] ci: run common tests in ./pkg in PRs --- .github/workflows/pr.yaml | 2 +- Makefile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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