Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander committed Mar 14, 2024
1 parent c4b4453 commit 7bab5a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: controller-test-cover
path: ./controller/cover.out
path: |
./controller/cover.out
./controller/cover_mcp_output.out
coverage:
timeout-minutes: 10
Expand All @@ -124,7 +126,10 @@ jobs:
uses: codecov/[email protected]
with:
fail_ci_if_error: true
file: ./cover.out,plugins/tests/integration/cover.out,./controller/cover.out
files: ./unit-test-cover/cover.out,
./plugins-integration-test-cover/cover.out,
./controller-test-cover/cover.out,
./controller-test-cover/cover_mcp_output.out
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

Expand Down
2 changes: 1 addition & 1 deletion controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ test: manifests generate envtest ## Run tests.
./... -coverprofile cover.out -covermode=atomic -coverpkg=./...
# rerun controller integration test with different output
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test -tags mcp_output -gcflags="all=-N -l" -race \
./tests/integration/controller -coverprofile cover.out -covermode=atomic -coverpkg=./...
./tests/integration/controller -coverprofile cover_mcp_output.out -covermode=atomic -coverpkg=./...

.PHONY: benchmark
benchmark: manifests generate envtest ## Run benchmarks
Expand Down

0 comments on commit 7bab5a8

Please sign in to comment.