Skip to content

Commit 84a2372

Browse files
zhaque44zachaller
authored andcommitted
updating make target and add to CI
Signed-off-by: zhaque44 <[email protected]>
1 parent d5477ad commit 84a2372

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
- name: Build
3737
if: steps.cache-build.outputs.cache-hit != 'true'
3838
run: make
39+
- name: Run Unit Tests
40+
run: make go-unit-test
3941
- name: Run Integration Tests
4042
run: make test-parallel
4143
- name: Generate code coverage artifacts

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ vet: ## Run go vet against code.
8282
test: manifests generate fmt vet envtest ## Run tests.
8383
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $$(go list ./... | grep -v /e2e) -coverprofile cover.out
8484

85-
.PHONY: test-exclude-controllers
86-
test-exclude-controllers: ## Run tests, excluding TestControllersGinkgo
85+
.PHONY: go-unit-test
86+
go-unit-test: ## Run unit tests
8787
@echo "Running tests excluding TestControllersGinkgo..."
8888
@go test $$(go test ./... -list . | grep -v "^ok" | grep -v "TestControllersGinkgo")
8989

0 commit comments

Comments
 (0)