@@ -48,11 +48,15 @@ jobs:
4848 - run : | # Process Coverage
4949 REPORT=$(grep -o "<table>.*</table>" coverage/html/index.html)
5050 PERCENT=$(jq '.data[0].totals.lines.percent' coverage/coverage.json)
51+ COVERED=$(jq '.data[0].totals.lines.covered' coverage/coverage.json)
52+ TOTAL=$(jq '.data[0].totals.lines.count' coverage/coverage.json)
5153 echo "REPORT<<EOF" >> $GITHUB_OUTPUT
5254 echo -e "$REPORT" >> $GITHUB_OUTPUT
5355 echo "EOF" >> $GITHUB_OUTPUT
5456 echo "PERCENT=$PERCENT" >> $GITHUB_OUTPUT
55- echo "Coverage is $PERCENT%"
57+ echo "COVERED=$COVERED" >> $GITHUB_OUTPUT
58+ echo "TOTAL=$TOTAL" >> $GITHUB_OUTPUT
59+ echo "Coverage is $PERCENT% ($COVERED/$TOTAL lines)"
5660 if (( $(echo "$PERCENT < 80" | bc -l) )); then
5761 echo "❌ Coverage below 80%"
5862 echo "FAILED=true" >> $GITHUB_OUTPUT # Store failure for next step
6670 issue-number : ${{ github.event.pull_request.number }}
6771 body : |
6872 ### 📊 Coverage Report
69-
73+
74+ **Lines: ${{ steps.coverage_report.outputs.COVERED }}/${{ steps.coverage_report.outputs.TOTAL }} (${{ steps.coverage_report.outputs.PERCENT }}%)**
75+
7076 ${{ steps.coverage_report.outputs.REPORT }}
7177 - run : |
7278 if [ "${{ steps.coverage_report.outputs.FAILED }}" == "true" ]; then
@@ -103,15 +109,16 @@ jobs:
103109 echo "### 🚀 Lighthouse Audit" > "$TMPFILE"
104110 if [ -f .lighthouseci/manifest.json ]; then
105111 echo "" >> "$TMPFILE"
106- echo "| URL | Performance | Accessibility | Best Practices | SEO |" >> "$TMPFILE"
107- echo "| --- | --- | --- | --- | --- |" >> "$TMPFILE"
112+ echo "| URL | Performance | Accessibility | Best Practices | SEO | PWA | " >> "$TMPFILE"
113+ echo "| --- | --- | --- | --- | --- | --- | " >> "$TMPFILE"
108114 jq -r '.[] |
109115 (.url | sub("http://localhost:[0-9]*/"; "")) as $url |
110116 (.summary.performance // 0 | . * 100 | floor) as $perf |
111117 (.summary.accessibility // 0 | . * 100 | floor) as $a11y |
112118 (.summary["best-practices"] // 0 | . * 100 | floor) as $bp |
113119 (.summary.seo // 0 | . * 100 | floor) as $seo |
114- "| `\($url)` | \($perf) | \($a11y) | \($bp) | \($seo) |"
120+ (.summary.pwa // 0 | . * 100 | floor) as $pwa |
121+ "| `\($url)` | \($perf) | \($a11y) | \($bp) | \($seo) | \($pwa) |"
115122 ' .lighthouseci/manifest.json >> "$TMPFILE"
116123 fi
117124 LINKS='${{ steps.lighthouse_audit.outputs.links }}'
0 commit comments