Skip to content

Commit

Permalink
feat: Add Lighthouse CI workflow for performance auditing
Browse files Browse the repository at this point in the history
  • Loading branch information
amalv committed Jan 19, 2024
1 parent 794cb88 commit b9a9a14
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lighthouse.yml
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

1 comment on commit b9a9a14

@github-actions
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.