Browse Source

Merge pull request #1 from hiren-patel-devops/abfedena-patch-1

Update lighthouse.yml
pull/9/head
abfedena 4 years ago
committed by GitHub
parent
commit
dabc085ee3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 32
      .github/workflows/lighthouse.yml

32
.github/workflows/lighthouse.yml

@ -1,23 +1,19 @@
name: Lighthouse Check name: Lighthouse Check
on:
deployment_status:
branches:
- '*'
on: [pull_request]
jobs: jobs:
lighthouse-check: lighthouse-check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success'
steps: 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
- uses: actions/checkout@master
- run: mkdir /tmp/artifacts
- name: Run Lighthouse
uses: foo-software/lighthouse-check-action@master
with:
outputDirectory: /tmp/artifacts
urls: 'https://www.foo.software,https://www.foo.software/contact'
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: /tmp/artifacts
Loading…
Cancel
Save