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 code coverage report #42

Merged
merged 3 commits into from
Oct 18, 2024
Merged

ci: add code coverage report #42

merged 3 commits into from
Oct 18, 2024

Conversation

spalen0
Copy link
Contributor

@spalen0 spalen0 commented Oct 1, 2024

Adds Github actions workflow to generate code coverage report and stores it as an artifact.

The flow is following:

  • Run forge coverage --report lcov to generate the report
  • Generate HTML report
  • Upload the report to Github actions artifcats
  • Publish code coverage data to PR (if PR is used) and env.GH_TOKEN is defined in secrets
  • Publish coverage in the build summary for faster review

Example of the successful actions: https://github.com/spalen0/tokenized-strategy-foundry-mix/actions/runs/11129598557

@Schlagonia Schlagonia merged commit 9ca7672 into yearn:master Oct 18, 2024
3 of 5 checks passed
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.

2 participants