Skip to content

Commit 8dce505

Browse files
Enhance CI configuration to use Chrome with no-sandbox for improved testing stability
1 parent d25c2a7 commit 8dce505

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/google-cloudrun-docker.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ jobs:
1818

1919
- run: npm ci
2020
- uses: browser-actions/setup-chrome@v1
21-
- run: echo "CHROME_BIN=$(which chrome)" >> $GITHUB_ENV
21+
- name: Use Chrome with no-sandbox
22+
run: |
23+
printf '#!/usr/bin/env bash\nexec "%s" --no-sandbox --disable-setuid-sandbox "$@"\n' "$(which chrome)" > /tmp/chrome-nosandbox.sh
24+
chmod +x /tmp/chrome-nosandbox.sh
25+
echo "CHROME_BIN=/tmp/chrome-nosandbox.sh" >> $GITHUB_ENV
2226
- run: sudo mount -t tmpfs tmpfs /dev/shm -o size=2G
2327
- run: xvfb-run -a npm run test:all -- --browsers=ChromeHeadless --watch=false --no-progress
2428

29+
2530
deploy:
2631
runs-on: ubuntu-latest
2732
needs: test

0 commit comments

Comments
 (0)