Skip to content

Commit

Permalink
refactor(lh): LH@8, CWV metric swap (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinribeiro authored Jul 30, 2021
1 parent 42c5bbb commit 8687c73
Show file tree
Hide file tree
Showing 6,686 changed files with 681,165 additions and 619,842 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 6 additions & 6 deletions .github/test/budget.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
"resourceSizes": [
{
"resourceType": "script",
"budget": 1
"budget": 100000
},
{
"resourceType": "image",
"budget": 1
"budget": 100000
},
{
"resourceType": "third-party",
"budget": 1
"budget": 10000
},
{
"resourceType": "total",
"budget": 1
"budget": 350000
}
],
"resourceCounts": [
{
"resourceType": "third-party",
"budget": 1
"budget": 10
},
{
"resourceType": "total",
"budget": 1
"budget": 35
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions .github/test/scores.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module.exports = {
},
'first-contentful-paint': {
score: 1,
numericValue: 100,
numericValue: 1000,
},
'first-meaningful-paint': {
score: 1,
numericValue: 100,
numericValue: 1000,
},
},
categories: {
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: With Budget.json + Scores.js
uses: ./
with:
secret: ${{ secrets.GITHUB_TOKEN }}
url: https://justinribeiro.com/
wptConnectionSpeed: twog
lighthouseBudget: .github/test/budget.json
lighthouseScoringBudget: .github/test/scores.js
- name: Generic Default Setup
uses: ./
with:
Expand All @@ -41,3 +33,11 @@ jobs:
wptConnectionSpeed: threegfast
lighthouseBudget: .github/test/budget.json
lighthouseConfiguration: .github/test/custom-config.json
- name: With Budget.json + Scores.js
uses: ./
with:
secret: ${{ secrets.GITHUB_TOKEN }}
url: https://justinribeiro.com/
wptConnectionSpeed: lte
lighthouseBudget: .github/test/budget.json
lighthouseScoringBudget: .github/test/scores.js
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ inputs:
description: 'File path to custom budget.json file; will fail PRs based on budget result. See https://developers.google.com/web/tools/lighthouse/audits/budgets'
secret:
description: 'This should be the default secrets.GITHUB_TOKEN so that we can send comments to your PRs.'
lighthouseScoringBudget:
description: 'File path to custom scores.js file; will fail PRs based on scoring result. See the above section in this README "Using scores.js to increase your audit power" for more information.'
outputs:
resultsPath:
description: 'Path to the folder with Lighthouse audit results'
Expand Down
1 change: 1 addition & 0 deletions node_modules/.bin/is-docker

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion node_modules/.bin/jsonlint

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/mime

This file was deleted.

2 changes: 1 addition & 1 deletion node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/smokehouse

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion node_modules/.bin/sshpk-conv

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/sshpk-sign

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/sshpk-verify

This file was deleted.

2 changes: 1 addition & 1 deletion node_modules/.bin/uuid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion node_modules/.bin/window-size

This file was deleted.

540 changes: 234 additions & 306 deletions node_modules/.yarn-integrity

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions node_modules/@actions/core/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 76 additions & 7 deletions node_modules/@actions/core/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions node_modules/@actions/core/lib/command.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 43 additions & 17 deletions node_modules/@actions/core/lib/command.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/command.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8687c73

Please sign in to comment.