From 3a7e6665adc6280f6cb1dfbbb15d8abf8c4e98cb Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Wed, 4 May 2022 17:48:41 +0300 Subject: [PATCH] misc: adjust Lighthouse CI (#7324) * misc: adjust Lighthouse CI * Use MD link * Format code --- .github/workflows/lighthouse-report.yml | 2 +- .github/workflows/scripts/format-lighthouse-score.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lighthouse-report.yml b/.github/workflows/lighthouse-report.yml index 41fd2dc71565..97bb2901a4ad 100644 --- a/.github/workflows/lighthouse-report.yml +++ b/.github/workflows/lighthouse-report.yml @@ -28,7 +28,7 @@ jobs: with: urls: | https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/ - https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/docs/ + https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/docs/installation configPath: ./.github/workflows/lighthouserc.json uploadArtifacts: true temporaryPublicStorage: true diff --git a/.github/workflows/scripts/format-lighthouse-score.js b/.github/workflows/scripts/format-lighthouse-score.js index 99ece0294c45..29d90976f73d 100644 --- a/.github/workflows/scripts/format-lighthouse-score.js +++ b/.github/workflows/scripts/format-lighthouse-score.js @@ -15,7 +15,9 @@ const createMarkdownTableRow = ({ pwa, reportUrl, }) => { - return `| ${url} | ${performance} | ${accessibility} | ${bestPractices} | ${seo} | ${pwa} | [View report](${reportUrl})|`; + return `| [${ + new URL(url).pathname + }](${url}) | ${performance} | ${accessibility} | ${bestPractices} | ${seo} | ${pwa} | [View report](${reportUrl})|`; }; const createSingleRow = ({summary, testUrl, reportPublicUrl}) => {