misc: adjust Lighthouse CI (#7324)

* misc: adjust Lighthouse CI

* Use MD link

* Format code
This commit is contained in:
Alexey Pyltsyn 2022-05-04 17:48:41 +03:00 committed by GitHub
parent 39f5cf3e29
commit 3a7e6665ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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}) => {