-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lcov installation step and update Codecov upload for Foundry and …
…Hardhat coverage reports
- Loading branch information
Showing
1 changed file
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,9 @@ jobs: | |
**/node_modules | ||
key: ${{ needs.setup.outputs.cache-key }} | ||
|
||
- name: Install lcov (for genhtml) | ||
run: sudo apt-get update && sudo apt-get install -y lcov | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/[email protected] | ||
with: | ||
|
@@ -116,11 +119,19 @@ jobs: | |
- name: Generate Hardhat & Foundry Coverage Report | ||
run: yarn coverage:report | ||
|
||
- name: Upload Coverage Report to Codecov | ||
- name: Upload Foundry Coverage Report to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage/foundry/lcov.info | ||
flags: foundry | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Upload Hardhat Coverage Report to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
files: ./coverage/foundry/lcov.info,./coverage/lcov.info | ||
flags: foundry,hardhat | ||
file: ./coverage/lcov.info | ||
flags: hardhat | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
|