ci: fix chromium path for frontend prerender
Some checks failed
Tests / Backend - Tests skipped: 8, passed: 74
Backend Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 78.38% (551/703)
* Lines of Code: 703
#### Quality Gates Summary
No active quality gates.
Tests / Frontend - Lint, Tests et Build src/test/fonctionnel/Accueil.test.jsx.Accueil - dates du jeu-concours > affiche les dates fixées dans le tableau de bord admin failed
THE-TIP-TOP-MULTIBRANCH/pipeline/head There was a failure building this commit
Some checks failed
Tests / Backend - Tests skipped: 8, passed: 74
Backend Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 78.38% (551/703)
* Lines of Code: 703
#### Quality Gates Summary
No active quality gates.
Tests / Frontend - Lint, Tests et Build src/test/fonctionnel/Accueil.test.jsx.Accueil - dates du jeu-concours > affiche les dates fixées dans le tableau de bord admin failed
THE-TIP-TOP-MULTIBRANCH/pipeline/head There was a failure building this commit
This commit is contained in:
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@@ -231,6 +231,7 @@ pipeline {
|
|||||||
node:22-alpine \
|
node:22-alpine \
|
||||||
sh -c "
|
sh -c "
|
||||||
apk add --no-cache chromium nss freetype harfbuzz ca-certificates ttf-freefont &&
|
apk add --no-cache chromium nss freetype harfbuzz ca-certificates ttf-freefont &&
|
||||||
|
export CHROMIUM_PATH=/usr/bin/chromium &&
|
||||||
npm ci --prefer-offline --no-audit --no-fund &&
|
npm ci --prefer-offline --no-audit --no-fund &&
|
||||||
npm run lint &&
|
npm run lint &&
|
||||||
npm run test:coverage &&
|
npm run test:coverage &&
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ async function main() {
|
|||||||
const base = server.resolvedUrls.local[0].replace(/\/$/, '')
|
const base = server.resolvedUrls.local[0].replace(/\/$/, '')
|
||||||
|
|
||||||
const browser = await chromium.launch({
|
const browser = await chromium.launch({
|
||||||
executablePath: process.env.CHROMIUM_PATH || '/usr/bin/chromium-browser',
|
executablePath: process.env.CHROMIUM_PATH || '/usr/bin/chromium',
|
||||||
headless: true,
|
headless: true,
|
||||||
})
|
})
|
||||||
const page = await browser.newPage()
|
const page = await browser.newPage()
|
||||||
|
|||||||
Reference in New Issue
Block a user