Try to fix test
This commit is contained in:
@@ -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
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user