From b5b172d5f4043ab10c9c2005cd4faed9fd9d56eb Mon Sep 17 00:00:00 2001 From: Lucas Gelfond Date: Mon, 23 Dec 2024 20:28:51 -0800 Subject: [PATCH] add chrome install and chrome env --- .github/workflows/CI.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 127dd2be17..835bd1d628 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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