mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 17:48:30 -04:00
run lighthouse tests on desktop instead of mobile
This commit is contained in:
parent
a1293c5a25
commit
a2445d236d
11
.github/workflows/lighthouse.yml
vendored
11
.github/workflows/lighthouse.yml
vendored
@ -18,10 +18,13 @@ jobs:
|
||||
lfs: false
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 14.x
|
||||
- run: npm install -g @lhci/cli
|
||||
node-version: 12.x
|
||||
- uses: browser-actions/setup-chrome@latest
|
||||
with:
|
||||
chrome-version: stable
|
||||
- run: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install -g @lhci/cli
|
||||
- run: |
|
||||
lhci healthcheck
|
||||
chrome --version
|
||||
lhci --version
|
||||
curl $LHCI_SERVER_BASE_URL/version
|
||||
echo "ref: ${{ github.event.deployment.ref }}"
|
||||
@ -30,7 +33,7 @@ jobs:
|
||||
- if: github.event.deployment_status.environment == 'production'
|
||||
continue-on-error: true
|
||||
env:
|
||||
BASE_URL: https://jarv.is/
|
||||
BASE_URL: https://jarv.is
|
||||
LHCI_BUILD_CONTEXT__CURRENT_BRANCH: main
|
||||
run: |
|
||||
lhci autorun \
|
||||
|
@ -1,20 +1,20 @@
|
||||
{
|
||||
"ci": {
|
||||
"collect": {
|
||||
"numberOfRuns": 3
|
||||
"numberOfRuns": 3,
|
||||
"settings": {
|
||||
"preset": "desktop",
|
||||
"chromeFlags": "--no-sandbox"
|
||||
}
|
||||
},
|
||||
"assert": {
|
||||
"preset": "lighthouse:no-pwa",
|
||||
"assertions": {
|
||||
"color-contrast": "warn",
|
||||
"csp-xss": "warn",
|
||||
"errors-in-console": "warn",
|
||||
"inspector-issues": "warn",
|
||||
"link-text": "warn",
|
||||
"long-tasks": "warn",
|
||||
"non-composited-animations": "warn",
|
||||
"total-byte-weight": ["warn", {"minScore": 0.9}],
|
||||
"unminified-javascript": "warn",
|
||||
"unsized-images": "warn",
|
||||
"unused-css-rules": "warn",
|
||||
"unused-javascript": "warn",
|
||||
@ -25,7 +25,8 @@
|
||||
"uses-long-cache-ttl": "off",
|
||||
"uses-responsive-images": "off",
|
||||
"uses-webp-images": "off"
|
||||
}
|
||||
},
|
||||
"includePassedAssertions": true
|
||||
},
|
||||
"upload": {
|
||||
"target": "lhci",
|
||||
|
Loading…
x
Reference in New Issue
Block a user