ci: configure and use chromium-no-sandbox wrapper for test execution
This commit is contained in:
1 parent
9e99fc5511
commit
4dd5ce6f5f
1 file changed
+3
-1
+3
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user