File tree Expand file tree Collapse file tree 4 files changed +46
-8
lines changed
Expand file tree Collapse file tree 4 files changed +46
-8
lines changed Original file line number Diff line number Diff line change 2323 uses : actions/setup-node@v1
2424 with :
2525 node-version : 18.x
26+ - name : Set CHROME_BIN (macOS)
27+ if : startsWith(matrix.os, 'macos')
28+ run : echo "CHROME_BIN=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" >> $GITHUB_ENV
29+ - name : Install Chromium runtime deps (Linux)
30+ if : startsWith(matrix.os, 'ubuntu')
31+ run : |
32+ sudo apt-get update
33+ common="libxkbcommon0 libgbm1 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libnss3 libnspr4 libx11-6 libx11-xcb1 libxext6 libxshmfence1 libdrm2"
34+ if apt-cache show libatk1.0-0 >/dev/null 2>&1; then
35+ sudo apt-get install -y libatk1.0-0 libatk-bridge2.0-0 libcups2 libasound2 libatspi2.0-0 libglib2.0-0 libgtk-3-0 $common
36+ else
37+ sudo apt-get install -y libatk1.0-0t64 libatk-bridge2.0-0t64 libcups2t64 libasound2t64 libatspi2.0-0t64 libglib2.0-0t64 libgtk-3-0t64 $common
38+ fi
2639 - name : npm install, build, and test
2740 run : |
2841 npm install
Original file line number Diff line number Diff line change 1818 node-version : 18
1919 registry-url : https://registry.npmjs.org/
2020 cache : npm
21+ - name : Install Chromium runtime deps (Linux)
22+ run : |
23+ sudo apt-get update
24+ common="libxkbcommon0 libgbm1 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libnss3 libnspr4 libx11-6 libx11-xcb1 libxext6 libxshmfence1 libdrm2"
25+ if apt-cache show libatk1.0-0 >/dev/null 2>&1; then
26+ sudo apt-get install -y libatk1.0-0 libatk-bridge2.0-0 libcups2 libasound2 libatspi2.0-0 libglib2.0-0 libgtk-3-0 $common
27+ else
28+ sudo apt-get install -y libatk1.0-0t64 libatk-bridge2.0-0t64 libcups2t64 libasound2t64 libatspi2.0-0t64 libglib2.0-0t64 libgtk-3-0t64 $common
29+ fi
2130 - run : npm ci
2231 - run : npm test
2332 - run : npm version ${TAG_NAME} --git-tag-version=false
4251 registry-url : https://npm.pkg.github.com
4352 cache : npm
4453 scope : ' @github'
54+ - name : Install Chromium runtime deps (Linux)
55+ run : |
56+ sudo apt-get update
57+ common="libxkbcommon0 libgbm1 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libnss3 libnspr4 libx11-6 libx11-xcb1 libxext6 libxshmfence1 libdrm2"
58+ if apt-cache show libatk1.0-0 >/dev/null 2>&1; then
59+ sudo apt-get install -y libatk1.0-0 libatk-bridge2.0-0 libcups2 libasound2 libatspi2.0-0 libglib2.0-0 libgtk-3-0 $common
60+ else
61+ sudo apt-get install -y libatk1.0-0t64 libatk-bridge2.0-0t64 libcups2t64 libasound2t64 libatspi2.0-0t64 libglib2.0-0t64 libgtk-3-0t64 $common
62+ fi
4563 - run : npm ci
4664 - run : npm test
4765 - run : npm version ${TAG_NAME} --git-tag-version=false
Original file line number Diff line number Diff line change 1- process . env . CHROME_BIN = require ( 'chromium' ) . path
1+ process . env . CHROME_BIN = process . env . CHROME_BIN || require ( 'chromium' ) . path
22
33module . exports = function ( config ) {
44 config . set ( {
@@ -11,7 +11,13 @@ module.exports = function(config) {
1111 port : 9876 ,
1212 colors : true ,
1313 logLevel : config . LOG_INFO ,
14- browsers : [ 'ChromeHeadless' ] ,
14+ customLaunchers : {
15+ ChromeHeadlessNoSandbox : {
16+ base : 'ChromeHeadless' ,
17+ flags : [ '--no-sandbox' , '--disable-setuid-sandbox' ] ,
18+ } ,
19+ } ,
20+ browsers : [ 'ChromeHeadlessNoSandbox' ] ,
1521 autoWatch : false ,
1622 singleRun : true ,
1723 concurrency : Infinity
You can’t perform that action at this time.
0 commit comments