mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 07:21:20 +00:00
fix: use devdep
This commit is contained in:
parent
0e83c8b051
commit
f0eaf34323
3 changed files with 6 additions and 5 deletions
4
.github/workflows/unlighthouse.yaml
vendored
4
.github/workflows/unlighthouse.yaml
vendored
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue