Skip to content

fix: ligthouse check failure fix #4062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/lighthouse-ci.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please look into the workflow again? It is still failing in your PR. You can also look into a completely different approach to get Lighthouse results.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: echo "shouldrun=true" >> $GITHUB_OUTPUT

- if: steps.should_run.outputs.shouldrun == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v

- if: steps.should_run.outputs.shouldrun == 'true'
name: Await Netlify Preview
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sambhavgupta0705 Are we sure that it is waiting for netlify deployment to complete? Also, what if netlify deployment fails on latest commit?

Expand All @@ -48,15 +48,14 @@ jobs:
- if: steps.should_run.outputs.shouldrun == 'true'
name: Lighthouse Audit
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@03becbfc543944dd6e7534f7ff768abb8a296826 #version 10.1 https://github.com/treosh/lighthouse-ci-action/releases/tag/10.1.0
uses: treosh/lighthouse-ci-action@2f8dda6cf4de7d73b29853c3f29e73a01e297bd8
with:
urls: |
https://deploy-preview-$PR_NUMBER--asyncapi-website.netlify.app/
https://deploy-preview-${{ github.event.pull_request.number }}--asyncapi-website.netlify.app/
configPath: ./.github/workflows/lighthouserc.json
uploadArtifacts: true
artifactName: lighthouse_results # Use only valid characters
temporaryPublicStorage: true
env:
PR_NUMBER: ${{ github.event.pull_request.number}}

- if: steps.should_run.outputs.shouldrun == 'true'
name: Lighthouse Score Report
Expand Down
Loading