mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-23 01:29:41 +01:00
switch to new Lighthouse CI
This commit is contained in:
parent
a3331b0581
commit
a8f81cd128
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
@ -80,3 +80,26 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
lighthouse:
|
||||||
|
needs: deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Audit Beta using Lighthouse
|
||||||
|
if: success() && github.event_name == 'pull_request'
|
||||||
|
uses: treosh/lighthouse-ci-action@v2
|
||||||
|
with:
|
||||||
|
urls: 'https://beta.matthiaskretschmann.com'
|
||||||
|
configPath: './.github/workflows/lighthouserc.json'
|
||||||
|
temporaryPublicStorage: 'true'
|
||||||
|
|
||||||
|
- name: Audit Live using Lighthouse
|
||||||
|
if: success() && github.ref == 'refs/heads/master'
|
||||||
|
uses: treosh/lighthouse-ci-action@v2
|
||||||
|
with:
|
||||||
|
urls: 'https://matthiaskretschmann.com'
|
||||||
|
configPath: './.github/workflows/lighthouserc.json'
|
||||||
|
temporaryPublicStorage: 'true'
|
||||||
|
15
.github/workflows/lighthouserc.json
vendored
Normal file
15
.github/workflows/lighthouserc.json
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"ci": {
|
||||||
|
"collect": {
|
||||||
|
"numberOfRuns": 3
|
||||||
|
},
|
||||||
|
"assert": {
|
||||||
|
"preset": "lighthouse:recommended",
|
||||||
|
"assertions": {
|
||||||
|
"font-display": "off",
|
||||||
|
"dom-size": "off",
|
||||||
|
"color-contrast": "off"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -19,8 +19,7 @@
|
|||||||
"test": "npm run lint && jest --coverage --silent",
|
"test": "npm run lint && jest --coverage --silent",
|
||||||
"test:watch": "npm run lint && jest --coverage --watch",
|
"test:watch": "npm run lint && jest --coverage --watch",
|
||||||
"deploy": "./scripts/deploy.sh",
|
"deploy": "./scripts/deploy.sh",
|
||||||
"new": "babel-node ./scripts/new.js",
|
"new": "babel-node ./scripts/new.js"
|
||||||
"lh": "lighthousebot --pwa=90 --perf=90 --a11y=90 --bp=90 --seo 90 --runner=wpt"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@loadable/component": "^5.10.3",
|
"@loadable/component": "^5.10.3",
|
||||||
@ -84,7 +83,6 @@
|
|||||||
"jest": "^24.9.0",
|
"jest": "^24.9.0",
|
||||||
"jest-canvas-mock": "^2.2.0",
|
"jest-canvas-mock": "^2.2.0",
|
||||||
"js-yaml": "^3.13.1",
|
"js-yaml": "^3.13.1",
|
||||||
"lighthousebot": "git+https://github.com/GoogleChromeLabs/lighthousebot.git",
|
|
||||||
"node-sass": "^4.13.0",
|
"node-sass": "^4.13.0",
|
||||||
"ora": "^4.0.3",
|
"ora": "^4.0.3",
|
||||||
"prepend": "^1.0.2",
|
"prepend": "^1.0.2",
|
||||||
|
Loading…
Reference in New Issue
Block a user