mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
[skip deploy] github: Update lighthouse action
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
f7ef842460
commit
9cef3b889c
22
.github/workflows/lighthouse.yml
vendored
22
.github/workflows/lighthouse.yml
vendored
|
@ -7,24 +7,16 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lighthouse-test:
|
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
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
|
||||||
|
|
||||||
- name: Wait for deployment to finish
|
- name: Wait for deployment to finish
|
||||||
run: sleep 10
|
run: sleep 10
|
||||||
|
- name: Audit URL using Lighthouse
|
||||||
- name: Audit URLs using Lighthouse
|
uses: jakejarvis/lighthouse-action@master
|
||||||
uses: treosh/lighthouse-ci-action@v2
|
|
||||||
with:
|
with:
|
||||||
urls: |
|
url: 'https://msfjarvis.dev/'
|
||||||
https://msfjarvis.dev/
|
- name: Upload results as an artifact
|
||||||
https://staging.msfjarvis.dev
|
uses: actions/upload-artifact@master
|
||||||
budgetsPath: ./budgets.json
|
|
||||||
|
|
||||||
- name: Save results
|
|
||||||
uses: actions/upload-artifact@v1
|
|
||||||
with:
|
with:
|
||||||
name: lighthouse-results
|
name: report
|
||||||
path: '.lighthouseci'
|
path: './report'
|
||||||
|
|
32
budgets.json
32
budgets.json
|
@ -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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
Loading…
Reference in New Issue
Block a user