Skip to content

Commit

Permalink
Add lighthouse workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsingis committed Aug 7, 2024
1 parent fc3d908 commit 6c4971b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: lighthouse
on:
workflow_run:
workflows: ["deploy"]
types:
- completed
workflow_dispatch:
env:
URL: https://jessekela.com/
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Audit URLs using Lighthouse
id: lighthouse
uses: treosh/lighthouse-ci-action@v12
with:
urls: ${{ env.URL }}
runs: 3
uploadArtifacts: true
temporaryPublicStorage: true
- name: Report
run: |
LINKS=$(echo '${{ steps.lighthouse.outputs.links }}' | jq -r --arg url "${{ env.URL }}" '.[$url]')
echo "URL: $LINKS"

0 comments on commit 6c4971b

Please sign in to comment.