51
51
)
52
52
53
53
echo "## 🚦 Lighthouse Results (Mobile & Desktop)" > lighthouse-report.md
54
- echo "| URL | Device | Perf | A11y | Best Practices | ⚠️ SEO score unreliable | " >> lighthouse-report.md
55
- echo "| --- | ------ | ---- | ---- | -------------- | --- | " >> lighthouse-report.md
54
+ echo "| URL | Device | Perf | A11y | Best Practices |" >> lighthouse-report.md
55
+ echo "| --- | ------ | ---- | ---- | -------------- |" >> lighthouse-report.md
56
56
57
57
for device in mobile desktop; do
58
58
for url in "${URLS[@]}"; do
72
72
perf=$(jq '.categories | .performance.score * 100' $report)
73
73
a11y=$(jq '.categories | .accessibility.score * 100' $report)
74
74
bp=$(jq '.categories | .["best-practices"].score * 100' $report)
75
- seo=$(jq '.categories | .seo.score * 100' $report)
76
75
77
76
stoplight() {
78
77
if (( $(echo "$1 >= 90" | bc -l) )); then echo "🟢";
@@ -83,12 +82,11 @@ jobs:
83
82
perf_stoplight=$(stoplight $perf)
84
83
a11y_stoplight=$(stoplight $a11y)
85
84
bp_stoplight=$(stoplight $bp)
86
- seo_stoplight=$(stoplight $seo)
87
85
88
86
path=$(echo "$url" | sed "s|$PREVIEW_URL||")
89
87
if [ -z "$path" ]; then path="/"; fi
90
88
91
- echo "| $path | $device | $perf_stoplight $(printf "%.0f" $perf) | $a11y_stoplight $(printf "%.0f" $a11y) | $bp_stoplight $(printf "%.0f" $bp) | $seo_stoplight $(printf "%.0f" $seo) | " >> lighthouse-report.md
89
+ echo "| $path | $device | $perf_stoplight $(printf "%.0f" $perf) | $a11y_stoplight $(printf "%.0f" $a11y) | $bp_stoplight $(printf "%.0f" $bp) |" >> lighthouse-report.md
92
90
done
93
91
done
94
92
@@ -119,7 +117,7 @@ jobs:
119
117
120
118
const botComment = comments.find(comment =>
121
119
comment.user.type === 'Bot' &&
122
- comment.body.includes('🚦Lighthouse Results (Mobile & Desktop) ')
120
+ comment.body.includes('🚦Lighthouse Results')
123
121
);
124
122
125
123
if (botComment) {
0 commit comments