Skip to content

Commit 74fcef5

Browse files
ci(lighthouse) : remove seo results (#1998)
remove seo results
1 parent 90e5a31 commit 74fcef5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/lighthouse.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
)
5252
5353
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
5656
5757
for device in mobile desktop; do
5858
for url in "${URLS[@]}"; do
@@ -72,7 +72,6 @@ jobs:
7272
perf=$(jq '.categories | .performance.score * 100' $report)
7373
a11y=$(jq '.categories | .accessibility.score * 100' $report)
7474
bp=$(jq '.categories | .["best-practices"].score * 100' $report)
75-
seo=$(jq '.categories | .seo.score * 100' $report)
7675
7776
stoplight() {
7877
if (( $(echo "$1 >= 90" | bc -l) )); then echo "🟢";
@@ -83,12 +82,11 @@ jobs:
8382
perf_stoplight=$(stoplight $perf)
8483
a11y_stoplight=$(stoplight $a11y)
8584
bp_stoplight=$(stoplight $bp)
86-
seo_stoplight=$(stoplight $seo)
8785
8886
path=$(echo "$url" | sed "s|$PREVIEW_URL||")
8987
if [ -z "$path" ]; then path="/"; fi
9088
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
9290
done
9391
done
9492
@@ -119,7 +117,7 @@ jobs:
119117

120118
const botComment = comments.find(comment =>
121119
comment.user.type === 'Bot' &&
122-
comment.body.includes('🚦Lighthouse Results (Mobile & Desktop)')
120+
comment.body.includes('🚦Lighthouse Results')
123121
);
124122

125123
if (botComment) {

0 commit comments

Comments
 (0)