From 8ce6ca35414dc4d7677127ed017e20ca0985e476 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Mon, 12 Jun 2023 00:59:12 +0200 Subject: [PATCH] feat: Added Overall scores --- .github/workflows/lighthouse-report.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lighthouse-report.yaml b/.github/workflows/lighthouse-report.yaml index 6760b4a..51372a7 100644 --- a/.github/workflows/lighthouse-report.yaml +++ b/.github/workflows/lighthouse-report.yaml @@ -96,12 +96,13 @@ jobs: `| Accessibility | ${score(result.summary.categories.accessibility.averageScore)} |`, `| Best practices | ${score(result.summary.categories['best-practices'].averageScore)} |`, `| SEO | ${score(result.summary.categories.seo.averageScore)} |`, + `| *Overall* | ${score(result.summary.score)} |`, '', '*Lighthouse scores for individual routes:*', '', - '| Path | Performance | Accessibility | Best practices | SEO |', - '| --- | --- | --- | --- | --- |', - `${result.routes.map(route => `| ${route.path} | ${score(route.categories.performance.score)} | ${score(route.categories.accessibility.score)} | ${score(route.categories['best-practices'].score)} | ${score(route.categories.seo.score)} |`).join('\n')}`, + '| Path | Performance | Accessibility | Best practices | SEO | Overall |', + '| --- | --- | --- | --- | --- | --- |', + `${result.routes.map(route => `| ${route.path} | ${score(route.categories.performance.score)} | ${score(route.categories.accessibility.score)} | ${score(route.categories['best-practices'].score)} | ${score(route.categories.seo.score)} | ${score(route.score)} |`).join('\n')}`, '', '*Lighthouse metrics:*', '',