Skip to content

Commit

Permalink
ci: run common tests in ./pkg in PRs (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
cannonpalms authored Nov 18, 2023
1 parent ce452c1 commit 0c1ad23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c1ad23

Please sign in to comment.