Skip to content

Commit

Permalink
refactor: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
0xClandestine committed Jan 30, 2025
1 parent 6588626 commit 5f83155
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
run: |
forge --version
forge build --sizes
echo "## Build result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
echo "## Build result"
echo "✅ Passed"
id: build

# Run local tests (unit and integration).
Expand Down Expand Up @@ -96,8 +96,8 @@ jobs:
run: |
forge --version
forge build --sizes
echo "## Build result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
echo "## Build result"
echo "✅ Passed"
id: build

# Run Forge Test (Intense)
Expand Down Expand Up @@ -136,14 +136,14 @@ jobs:
run: |
forge --version
forge build --sizes
echo "## Build result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
echo "## Build result"
echo "✅ Passed"
id: build

# Run Forge coverage with LCOV report format, excluding test and script files
- name: Forge Coverage
run: |
FOUNDRY_PROFILE=ci forge coverage --report lcov --no-match-coverage "src/test/*","script/*","*Storage" >> $GITHUB_STEP_SUMMARY
FOUNDRY_PROFILE=ci forge coverage --report lcov --no-match-coverage "src/test/*","script/*","*Storage"
genhtml -q -o report ./lcov.info
# Upload coverage report as artifact before potential failure
Expand Down

0 comments on commit 5f83155

Please sign in to comment.