Try to fix test
All checks were successful
Build, Test & Push Frontend / quality-check (pull_request) Successful in 1m45s
Build, Test & Push Frontend / docker (pull_request) Has been skipped

This commit is contained in:
Andreas Dahm
2026-06-02 15:56:15 +02:00
parent a26443af8f
commit 1087fc40e0
6 changed files with 524 additions and 10 deletions

View File

@@ -56,22 +56,21 @@ jobs:
- name: i18n Key Check
run: npm run i18n:check
# 3. Unit Tests (Logic)
# 3. Unit Tests (Logic) — browser/launcher configured in karma.conf.js
- name: Unit Tests
run: npx ng test --watch=false --browsers=ChromeHeadless
run: npx ng test --watch=false
# 4. Build Production (necessary for lighthouse)
- name: Build Production
run: npx ng build --configuration production
# 5. Lighthouse Audit (Performance & SEO)
- name: Install Puppeteer
run: npm install puppeteer --no-save
# Puppeteer is a devDependency, so `npm ci` already installed it and
# downloaded Chrome. executablePath() is async in Puppeteer v25, so await it.
- name: Lighthouse CI
run: |
CHROME_PATH=$(node -e 'console.log(require("puppeteer").executablePath())')
export CHROME_PATH=$CHROME_PATH
CHROME_PATH=$(node -e 'require("puppeteer").executablePath().then(p => console.log(p))')
export CHROME_PATH=$CHROME_PATH
npx lhci autorun
# ------------------------------------------------------------------