Skip to content

Commit

Permalink
Add lcov installation step and update Codecov upload for Foundry and …
Browse files Browse the repository at this point in the history
…Hardhat coverage reports
  • Loading branch information
Aboudjem committed Feb 20, 2024
1 parent e6fe3ea commit 7971f23
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

Expand Down

0 comments on commit 7971f23

Please sign in to comment.