Skip to content

Commit 0c1ad23

Browse files
authored
ci: run common tests in ./pkg in PRs (#72)
1 parent ce452c1 commit 0c1ad23

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
target: ["lint", "test-bootstrap", "test-controlplane"]
18+
target: ["lint", "test-bootstrap", "test-controlplane", "test-common"]
1919

2020
steps:
2121
- name: checkout

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ BOOTSTRAP_IMG ?= $(REGISTRY)/bootstrap-controller:$(BOOTSTRAP_IMG_TAG)
120120
CONTROLPLANE_IMG_TAG ?= $(RELEASE_TAG)
121121
CONTROLPLANE_IMG ?= $(REGISTRY)/controlplane-controller:$(CONTROLPLANE_IMG_TAG)
122122

123+
test-common:
124+
go test $(shell pwd)/pkg/... -coverprofile cover.out
125+
123126
all-bootstrap: manager-bootstrap
124127

125128
# Run tests

0 commit comments

Comments
 (0)