Skip to content

Commit

Permalink
chore: enable code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Jun 17, 2024
1 parent 3d5da57 commit 0ae672a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,24 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install lcov
run: |
sudo apt-get install lcov
id: lcov

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run coverage
run: forge coverage --report lcov
env:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }}
CHAIN_ID: ${{ secrets.CHAIN_ID }}

- name: Prune coverage report
run: lcov --remove ./lcov.info -o ./lcov.info.pruned 'src/test/*' 'script/*' --ignore-errors inconsistent

- name: Generate reports
run: genhtml -o report ./lcov.info.pruned

- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 0ae672a

Please sign in to comment.