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

feat(ci): add llvm-cov to template ci #55

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joshrotenberg
Copy link
Contributor

@joshrotenberg joshrotenberg commented Mar 29, 2024

This adds the cut/paste llvm-cov job from the docs.

I tested this by creating a project with the template and put it here: https://github.com/joshrotenberg/rust-template-llvm-cov-test

I removed the call to upload the coverage file in the workflow because it requires the token in secrets, which means the workflow fails by default, which seems bad, but I'm open to suggestions.

Fixes #44

move this into the raw block

removed the upload section
@joshrotenberg joshrotenberg marked this pull request as ready for review March 30, 2024 16:26
@MarcoIeni
Copy link
Member

Thanks for this!

How is the user supposed to use the lcov.info file?

It would be nice to show the coverage percentage in the readme. This repo used coveralls for this.

@joshrotenberg
Copy link
Contributor Author

Thanks for this!

👍

How is the user supposed to use the lcov.info file?

Good question. I just added the coveralls action with just the file argument which seems to work out of the box and has a lot of configuration options: https://github.com/marketplace/actions/coveralls-github-action

The output for the run is here: https://github.com/joshrotenberg/rust-template-llvm-cov-test/actions/runs/8530312705/job/23367853431

It would be nice to show the coverage percentage in the readme. This repo used coveralls for this.

Where is this? I don't see it.

@MarcoIeni
Copy link
Member

Where is this? I don't see it.

It was here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add code coverage
2 participants