add chrome install and chrome env
This commit is contained in:
parent
f054e6327c
commit
b5b172d5f4
8
.github/workflows/CI.yml
vendored
8
.github/workflows/CI.yml
vendored
@ -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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user