ci: configure and use chromium-no-sandbox wrapper for test execution

This commit is contained in:
nessar committed 2026-05-05 21:17:25 +02:00
1 parent 9e99fc5511
commit 4dd5ce6f5f
1 file changed
+3 -1
+3 -1
View File
@@ -48,9 +48,11 @@ test:
stage: test
before_script:
- apt-get update && apt-get install -y chromium
- echo -e '#!/bin/sh\nexec /usr/bin/chromium --no-sandbox "$@"' > /usr/bin/chromium-no-sandbox
- chmod +x /usr/bin/chromium-no-sandbox
- npm ci --cache .npm --prefer-offline
variables:
CHROME_BIN: /usr/bin/chromium
CHROME_BIN: /usr/bin/chromium-no-sandbox
script:
- npm run test -- --watch=false --browsers=ChromeHeadless --code-coverage
artifacts: