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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
14 additions and
18 deletions
-
.github/workflows/lighthouse.yml
|
|
|
@ -1,23 +1,19 @@ |
|
|
|
name: Lighthouse Check |
|
|
|
on: |
|
|
|
deployment_status: |
|
|
|
branches: |
|
|
|
- '*' |
|
|
|
on: [pull_request] |
|
|
|
|
|
|
|
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 |
|
|
|
- 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 |