fix: use devdep

This commit is contained in:
Bart van der Braak 2024-02-19 11:15:50 +01:00
parent 0e83c8b051
commit f0eaf34323
3 changed files with 6 additions and 5 deletions

View file

@ -74,7 +74,7 @@ jobs:
timeout: 360
- name: Install Dependencies
run: pnpm install -g @unlighthouse/cli puppeteer
run: pnpm install
- name: Run Unlighthouse
run: |
@ -85,7 +85,7 @@ jobs:
-F "password=${{ secrets.TEST_USER_PASSWORD }}" \
--verbose 2>&1 | awk -F'pb_auth=' '/pb_auth/{print $2;exit}' | awk -F';' '{print $1}')
unlighthouse-ci
pnpm run unlighthouse
- name: Upload report to Cloudflare pages
uses: cloudflare/wrangler-action@v3.4.1

View file

@ -9,7 +9,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
"format": "prettier --write .",
"unlighthouse": "unlighthouse-ci"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",

View file

@ -1,7 +1,7 @@
import { defineConfig } from 'unlighthouse';
export default defineConfig({
site: process.env.SITE_URL || 'http://localhost:5173/',
site: process.env.SCAN_URL || 'http://localhost:5173/',
scanner: {
samples: 1,
throttle: true
@ -10,7 +10,7 @@ export default defineConfig({
{
name: 'pb_auth',
value: process.env.AUTH_COOKIE || '',
domain: 'localhost',
domain: process.env.SCAN_URL || 'http://localhost:5173/',
path: '/',
sameSite: 'Lax'
}