Skip to content

Commit

Permalink
ci: add coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Nov 28, 2024
1 parent 84ab165 commit 9d47a05
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,22 @@ jobs:
- run: forge snapshot --check
env:
FOUNDRY_PROFILE: default

coverage:
needs: [test-unit]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

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

- run: forge coverage --report lcov

- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: ./lcov.info

0 comments on commit 9d47a05

Please sign in to comment.