Skip to content

Commit d25c2a7

Browse files
Enhance CI configuration for ChromeHeadless testing with xvfb support
1 parent 9e95cb1 commit d25c2a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
cache: npm
1818

1919
- run: npm ci
20-
21-
- run: npm run test:all -- --browsers=ChromeHeadless --watch=false --no-progress
20+
- uses: browser-actions/setup-chrome@v1
21+
- run: echo "CHROME_BIN=$(which chrome)" >> $GITHUB_ENV
22+
- run: sudo mount -t tmpfs tmpfs /dev/shm -o size=2G
23+
- run: xvfb-run -a npm run test:all -- --browsers=ChromeHeadless --watch=false --no-progress
2224

2325
deploy:
2426
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)