You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
709 B
23 lines
709 B
name: Lighthouse Check
|
|
on:
|
|
deployment_status:
|
|
branches:
|
|
- '*'
|
|
jobs:
|
|
lighthouse-check:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.deployment_status.state == 'success'
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- run: mkdir /tmp/artifacts
|
|
- name: Run Lighthouse
|
|
uses: foo-software/lighthouse-check-action@master
|
|
with:
|
|
accessToken: ${{ secrets.LIGHTHOUSE_CHECK_GITHUB_ACCESS_TOKEN }}
|
|
outputDirectory: /tmp/artifacts
|
|
urls: '${{ github.event.deployment_status.target_url }}'
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@master
|
|
with:
|
|
name: Lighthouse reports
|
|
path: /tmp/artifacts
|