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

ci: Add codecov support #667

Merged
merged 1 commit into from
Feb 15, 2024
Merged

ci: Add codecov support #667

merged 1 commit into from
Feb 15, 2024

Conversation

viccuad
Copy link
Member

@viccuad viccuad commented Feb 15, 2024

Description

Fix #661

Add new make targets coverage, coverage-unit-tests, coverage-integration-teststhat are used in the CI. They run the tests viacargo-tarpaulinwith llvm, and save the reports to the respective new folderscoverage/{unit-tests,integration-tests}/*`.

The make targets are both configured with cargo +nightly, as cargo-tarpaulin for the integration-tests need it, and in this way we can skip recompiling again.

Add new CI job that runs the tests via the new makefile targets and uploads the result to codecov.

Test

CI, PR should get a "welcome to codecov" message, and audit-scanner appear under https://app.codecov.io/github/kubewarden/.

Additional Information

Tradeoff

Potential improvement

Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
@viccuad viccuad self-assigned this Feb 15, 2024
@viccuad viccuad requested a review from a team as a code owner February 15, 2024 15:50
Copy link

codecov bot commented Feb 15, 2024

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@flavio
Copy link
Member

flavio commented Feb 15, 2024

nice job!

@flavio flavio merged commit 499f357 into kubewarden:main Feb 15, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

policy-server: Enable codecov
2 participants