[skip deploy] github: Update lighthouse action

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2020-01-11 01:40:43 +05:30
parent f7ef842460
commit 9cef3b889c
2 changed files with 7 additions and 47 deletions

View File

@ -7,24 +7,16 @@ on:
jobs:
lighthouse-test:
if: "!contains(github.event.head_commit.message, '[skip staging]') && !contains(github.event.head_commit.message, '[skip deploy]') && !contains(github.event.head_commit.message, '[skip prod]')"
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Wait for deployment to finish
run: sleep 10
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v2
- name: Audit URL using Lighthouse
uses: jakejarvis/lighthouse-action@master
with:
urls: |
https://msfjarvis.dev/
https://staging.msfjarvis.dev
budgetsPath: ./budgets.json
- name: Save results
uses: actions/upload-artifact@v1
url: 'https://msfjarvis.dev/'
- name: Upload results as an artifact
uses: actions/upload-artifact@master
with:
name: lighthouse-results
path: '.lighthouseci'
name: report
path: './report'

View File

@ -1,32 +0,0 @@
[
{
"resourceSizes": [
{
"resourceType": "script",
"budget": 300
},
{
"resourceType": "image",
"budget": 100
},
{
"resourceType": "third-party",
"budget": 200
},
{
"resourceType": "total",
"budget": 1000
}
],
"resourceCounts": [
{
"resourceType": "third-party",
"budget": 10
},
{
"resourceType": "total",
"budget": 50
}
]
}
]