Skip to content

Commit c5bde55

Browse files
committed
test(ci): use ChromeHeadlessNoSandbox for containers
1 parent a2ac1d9 commit c5bde55

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

frontend/karma.conf.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// frontend/karma.conf.js
2+
/** @type {import('karma').Config} */
3+
module.exports = function (config) {
4+
config.set({
5+
browsers: [process.env.CI ? 'ChromeHeadlessNoSandbox' : 'Chrome'],
6+
customLaunchers: {
7+
ChromeHeadlessNoSandbox: {
8+
base: 'ChromeHeadless',
9+
flags: [
10+
'--no-sandbox',
11+
'--disable-gpu',
12+
'--disable-dev-shm-usage',
13+
'--disable-setuid-sandbox',
14+
'--remote-debugging-port=9222'
15+
]
16+
}
17+
},
18+
});
19+
};

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build:pages:ssg": "ng build --configuration production --base-href=/ && ng run frontend:prerender",
1717
"deploy:pages": "pnpm run build:pages && pnpm dlx angular-cli-ghpages --dir=dist/frontend/browser --branch=gh-pages --message=\"deploy: pages (spa)\"",
1818
"deploy:pages:ssg": "pnpm run build:pages:ssg && pnpm dlx angular-cli-ghpages --dir=dist/frontend --branch=gh-pages --message=\"deploy: pages (ssg)\"",
19-
"test:ci": "ng test --watch=false --browsers=ChromeHeadless --progress=false"
19+
"test:ci": "ng test --watch=false --browsers=ChromeHeadlessNoSandbox --progress=false"
2020
},
2121
"private": true,
2222
"dependencies": {

0 commit comments

Comments
 (0)