Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adapt Makefile command to run unit tests #2072

Merged
merged 5 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:

- name: Unit Test ${{ matrix.config.name }}
working-directory: ./${{ matrix.config.folder }}
run: make test
run: make uit-test
odubajDT marked this conversation as resolved.
Show resolved Hide resolved

- name: Report code coverage
uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion klt-cert-manager/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fmt: ## Run go fmt against code.
vet: ## Run go vet against code.
go vet ./...

.PHONY: test
.PHONY: unit-test
test: manifests generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... -coverprofile cover.out

Expand Down
2 changes: 1 addition & 1 deletion lifecycle-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fmt: ## Run go fmt against code.
vet: ## Run go vet against code.
go vet ./...

.PHONY: test
.PHONY: unit-test
test: manifests fmt vet generate envtest ## Run tests.
go test ./cmd/... -v -coverprofile cover-cmd.out
go test ./apis/... -v -coverprofile cover-apis.out
Expand Down
2 changes: 1 addition & 1 deletion metrics-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fmt: ## Run go fmt against code.
vet: ## Run go vet against code.
go vet ./...

.PHONY: test
.PHONY: unit-test
test: manifests generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out

Expand Down
2 changes: 1 addition & 1 deletion scheduler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ vet: ## Run go vet against code.
e2e-test: manifests envtest ## Run tests.
go test ./test/e2e -v -coverprofile cover.out

.PHONY: test
.PHONY: unit-test
test: manifests fmt vet envtest## Run tests.
go test ./pkg/... -coverprofile cover-pkg.out
go test ./cmd/scheduler -coverprofile cover-main.out
Expand Down
Loading