fixed unlighthouse 10
This commit is contained in:
parent
278befbb50
commit
215b803749
4 changed files with 5913 additions and 18 deletions
|
@ -12,7 +12,7 @@ jobs:
|
|||
unlighthouse:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: forgejo.neshweb.net/ci-docker-images/unlighthouse:0.4.1
|
||||
image: forgejo.neshweb.net/ci-docker-images/unlighthouse:0.16.3
|
||||
services:
|
||||
website:
|
||||
image: forgejo.neshweb.net/firq/firq-dev-website:${{ inputs.containertag }}
|
||||
|
|
5912
package-lock.json
generated
5912
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@firq/fgosite",
|
||||
"type": "module",
|
||||
"version": "0.2.0-pre.90",
|
||||
"version": "0.2.0-pre.91",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
|
@ -23,6 +23,9 @@
|
|||
"postcss-preset-env": "^10.1.5",
|
||||
"typescript": "^5.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"unlighthouse": "^0.16.3"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 2 versions",
|
||||
">0.5% and not dead"
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
export default async () => {
|
||||
import type { UserConfig } from 'unlighthouse'
|
||||
|
||||
export default async (): Promise<UserConfig> => {
|
||||
/* fetch sitemap from debug container */
|
||||
const sitemap = await (await fetch('http://website:8081/sitemap-0.xml')).text();
|
||||
/* format URLs to work with debug container */
|
||||
|
@ -10,7 +12,6 @@ export default async () => {
|
|||
/* actual config */
|
||||
return {
|
||||
lighthouseOptions: {
|
||||
cache: false,
|
||||
throttlingMethod: 'devtools',
|
||||
throttling: {
|
||||
cpuSlowdownMultiplier: 4,
|
||||
|
@ -22,10 +23,11 @@ export default async () => {
|
|||
width: 412,
|
||||
height: 823,
|
||||
deviceScaleFactor: 1.75,
|
||||
}
|
||||
},
|
||||
skipAudits: [ 'is-on-https', 'redirects-http', 'uses-http2' ],
|
||||
},
|
||||
puppeteerOptions: {
|
||||
args: ['--no-sandbox', '--disable-setuid-sandbox'],
|
||||
args: [ '--no-sandbox', '--disable-setuid-sandbox' ],
|
||||
},
|
||||
puppeteerClusterOptions: {
|
||||
maxConcurrency: 1
|
||||
|
@ -33,7 +35,6 @@ export default async () => {
|
|||
ci: {
|
||||
budget: 50,
|
||||
buildStatic: true,
|
||||
skipAudits: ['is-on-https', 'redirects-http', 'uses-http2']
|
||||
},
|
||||
scanner: {
|
||||
sitemap: true,
|
||||
|
@ -41,6 +42,7 @@ export default async () => {
|
|||
samples: 3,
|
||||
},
|
||||
outputPath: 'unlighthouse-reports',
|
||||
cache: false,
|
||||
urls
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue