Skip to content

Commit

Permalink
Merge pull request #73 from storyofams/feat/lighthouse
Browse files Browse the repository at this point in the history
feat(lighthouse): 🚀  lighthouse on vercel deployment url
  • Loading branch information
BJvdA authored Mar 9, 2021
2 parents 4ed5baa + 5af00d5 commit 1b590be
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,29 @@ jobs:
with:
name: cypress-videos
path: cypress/videos

run-lighthouse:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: mkdir /tmp/artifacts

- name: Get deployment URL
uses: patrickedqvist/wait-for-vercel-preview@master
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 300

- name: Run Lighthouse
uses: foo-software/lighthouse-check-action@master
with:
outputDirectory: /tmp/artifacts
urls: '${{ steps.waitFor200.outputs.url }}'

- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: /tmp/artifacts

1 comment on commit 1b590be

@vercel
Copy link

@vercel vercel bot commented on 1b590be Mar 9, 2021

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.