-
Notifications
You must be signed in to change notification settings - Fork 36
36 lines (32 loc) · 1005 Bytes
/
lighthouse.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Lighthouse
on:
pull_request:
types: [labeled]
branches:
- master
jobs:
lighthouse:
name: Audit site using Lighthouse
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'lighthouse')
steps:
- name: Test Netlify deploy preview
uses: treosh/lighthouse-ci-action@v11
env:
HOST_BASE: storefront-template.netlify.com
HOST_PREVIEW: deploy-preview-${{ github.event.pull_request.number }}--storefront-template.netlify.com
with:
urls: |
https://$HOST_BASE/
https://$HOST_PREVIEW/
https://$HOST_BASE/slug
https://$HOST_PREVIEW/slug
https://$HOST_BASE/app/
https://$HOST_PREVIEW/app/
- name: Save report artifact
uses: actions/upload-artifact@v2
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
with:
name: lighthouse-results
path: '.lighthouseci'