Skip to content

Commit

Permalink
misc: adjust Lighthouse CI (#7324)
Browse files Browse the repository at this point in the history
* misc: adjust Lighthouse CI

* Use MD link

* Format code
  • Loading branch information
lex111 authored May 4, 2022
1 parent 39f5cf3 commit 3a7e666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/scripts/format-lighthouse-score.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}) => {
Expand Down

0 comments on commit 3a7e666

Please sign in to comment.