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

View file

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

View file

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