Skip to content

Commit

Permalink
add chrome install and chrome env
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgelfond committed Dec 24, 2024
1 parent f054e63 commit b5b172d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install Chrome
uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v2
Expand All @@ -90,4 +94,8 @@ jobs:
- name: Install dependencies
run: npm install
- name: Run tests
env:
CHROME_HEADLESS: 1
CHROME_PATH: chrome
CHROME_FLAGS: "--headless --disable-gpu --no-sandbox --enable-features=SharedArrayBuffer,CrossOriginIsolation"
run: npm test

0 comments on commit b5b172d

Please sign in to comment.