-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Lighthouse CI workflow for performance auditing
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Lighthouse CI | ||
on: | ||
workflow_run: | ||
workflows: ["Deploy to Staging"] | ||
types: | ||
- completed | ||
jobs: | ||
lighthouse: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download deploy URL | ||
id: download-artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
workflow: "deploy_staging.yml" | ||
workflow_conclusion: "success" | ||
name: "deploy-url" | ||
|
||
- name: Set deploy URL | ||
run: echo "DEPLOY_URL=$(cat deploy-url.txt)" >> $GITHUB_ENV | ||
|
||
- name: Audit URLs using Lighthouse | ||
uses: treosh/lighthouse-ci-action@v10 | ||
with: | ||
urls: ${{ env.DEPLOY_URL }} | ||
uploadArtifacts: true | ||
temporaryPublicStorage: true |
b9a9a14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://65aafbb73181fa15e9d2adad--aesthetic-jalebi-84d3c0.netlify.app