mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 15:31:21 +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
|
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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue