Skip to content

Commit 9d47a05

Browse files
committed
ci: add coverage step
1 parent 84ab165 commit 9d47a05

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,22 @@ jobs:
6868
- run: forge snapshot --check
6969
env:
7070
FOUNDRY_PROFILE: default
71+
72+
coverage:
73+
needs: [test-unit]
74+
runs-on: ubuntu-latest
75+
steps:
76+
- uses: actions/checkout@v4
77+
with:
78+
submodules: recursive
79+
80+
- uses: foundry-rs/foundry-toolchain@v1
81+
with:
82+
version: nightly
83+
84+
- run: forge coverage --report lcov
85+
86+
- uses: codecov/codecov-action@v3
87+
with:
88+
fail_ci_if_error: true
89+
files: ./lcov.info

0 commit comments

Comments
 (0)