-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (26 loc) · 1001 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
name: Lighthouse
on: [pull_request]
jobs:
lighthouse-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Lighthouse
uses: foo-software/lighthouse-check-action@master
id: lighthouseCheck
with:
urls: 'https://fitzmuseum.cam.ac.uk,https://fitzmuseum.cam.ac.uk/about-us,https://fitzmuseum.cam.ac.uk/visit-us,https://fitzmuseum.cam.ac.uk/research'
# ... all your other inputs
- name: Verify Lighthouse Check results
uses: foo-software/lighthouse-check-status-action@master
with:
lighthouseCheckResults: ${{ steps.lighthouseCheck.outputs.lighthouseCheckResults }}
minAccessibilityScore: "90"
minBestPracticesScore: "85"
minPerformanceScore: "70"
minSeoScore: "90"
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: ${{ github.workspace }}/tmp/artifacts