Skip to content

Commit

Permalink
Update test-coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrugama authored Feb 16, 2025
1 parent fac9753 commit 840f71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
echo "### 📊 General Coverage" >> coverage_section.md
TOTAL_COVERAGE=$(jq -r '.coveredLines / .executableLines * 100 | round / 1' coverage.json)
COVERAGE_BADGE_URL=$(generate_badge $TOTAL_COVERAGE)
echo "[![Test Coverage]($COVERAGE_BADGE_URL)](https://github.com/mrugama/Weather/actions)" >> coverage_section.md
echo "![Test Coverage]($COVERAGE_BADGE_URL)" >> coverage_section.md
echo "" >> coverage_section.md
echo "---" >> coverage_section.md
echo "### 📄 File-wise Coverage Breakdown" >> coverage_section.md
Expand All @@ -96,7 +96,7 @@ jobs:
# Generate file-wise coverage rows with dynamic badges
jq -r '.targets[].files[] | "\(.name) \(.coveredLines) \(.executableLines) \(.lineCoverage * 100 | round)"' coverage.json | while read -r name coveredLines executableLines coverage; do
BADGE_URL=$(generate_badge $coverage)
echo "| $name | $coveredLines | $executableLines | [![Coverage]($BADGE_URL)](https://github.com/mrugama/Weather/actions) |" >> coverage_section.md
echo "| $name | $coveredLines | $executableLines | ![Coverage]($BADGE_URL) |" >> coverage_section.md
done
echo "---" >> coverage_section.md
Expand Down

0 comments on commit 840f71f

Please sign in to comment.