diff --git a/.github/workflows/odh_notebook_controller_unit_test.yaml b/.github/workflows/odh_notebook_controller_unit_test.yaml index ec7f647528a..09affa2c596 100644 --- a/.github/workflows/odh_notebook_controller_unit_test.yaml +++ b/.github/workflows/odh_notebook_controller_unit_test.yaml @@ -27,3 +27,10 @@ jobs: run: | cd components/odh-notebook-controller make test + + - name: Upload results to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./components/odh-notebook-controller/cover-rbac-false.out,./components/odh-notebook-controller/cover-rbac-true.out + disable_search: true \ No newline at end of file diff --git a/components/odh-notebook-controller/Makefile b/components/odh-notebook-controller/Makefile index 90de33e4e54..7ca6bb961fd 100644 --- a/components/odh-notebook-controller/Makefile +++ b/components/odh-notebook-controller/Makefile @@ -94,12 +94,12 @@ test-with-rbac-false: manifests generate fmt vet envtest ## Run tests. export SET_PIPELINE_RBAC=false && \ ACK_GINKGO_DEPRECATIONS=1.16.5 \ KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" \ - go test ./controllers/... -ginkgo.v -ginkgo.progress -test.v -coverprofile cover.out + go test ./controllers/... -ginkgo.v -ginkgo.progress -test.v -coverprofile cover-rbac-false.out test-with-rbac-true: manifests generate fmt vet envtest ## Run tests. export SET_PIPELINE_RBAC=true && \ ACK_GINKGO_DEPRECATIONS=1.16.5 \ KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" \ - go test ./controllers/... -ginkgo.v -ginkgo.progress -test.v -coverprofile cover.out + go test ./controllers/... -ginkgo.v -ginkgo.progress -test.v -coverprofile cover-rbac-true.out ##@ Build