ci: use system Chromium 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 passed: 72
Frontend Coverage #### Project Overview No changes detected, that affect the code coverage. * Line Coverage: 84.87% (505/595) * Lines of Code: 595 #### Quality Gates Summary No active quality gates.
THE-TIP-TOP-MULTIBRANCH/pipeline/head There was a failure building this commit

This commit is contained in:
2026-09-17 19:26:08 +00:00
parent 89e49bc56d
commit e257da41b0
2 changed files with 5 additions and 1 deletions

1
Jenkinsfile vendored
View File

@@ -220,6 +220,7 @@ pipeline {
--volumes-from furious-jenkins \ --volumes-from furious-jenkins \
-v tiptop-npm-cache-frontend:/npm-cache \ -v tiptop-npm-cache-frontend:/npm-cache \
-e HOME=/tmp \ -e HOME=/tmp \
-e CHROMIUM_PATH=/usr/bin/chromium-browser \
-e NODE_OPTIONS=--dns-result-order=ipv4first \ -e NODE_OPTIONS=--dns-result-order=ipv4first \
-e NPM_CONFIG_CACHE=/npm-cache \ -e NPM_CONFIG_CACHE=/npm-cache \
-e NPM_CONFIG_FETCH_RETRIES=5 \ -e NPM_CONFIG_FETCH_RETRIES=5 \

View File

@@ -30,7 +30,10 @@ async function main() {
const server = await preview({ root, preview: { port: 4173, strictPort: false } }) const server = await preview({ root, preview: { port: 4173, strictPort: false } })
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',
headless: true,
})
const page = await browser.newPage() const page = await browser.newPage()
for (const route of ROUTES) { for (const route of ROUTES) {