Skip to content

Commit 88baa6a

Browse files
committed
Install Chrome explicitly in frontend CI
1 parent 2b38fc2 commit 88baa6a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/frontend.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,22 @@ jobs:
3535
if: ${{ needs.changes.outputs.frontend == 'true' }}
3636
runs-on: ubuntu-latest
3737
timeout-minutes: 7
38-
env:
39-
CHROME_BIN: google-chrome
4038
steps:
4139
- uses: actions/checkout@v4
4240
- uses: actions/setup-node@v4
4341
with:
4442
node-version: 14
4543
cache: npm
4644
cache-dependency-path: frontend/package-lock.json
45+
- uses: browser-actions/setup-chrome@v2
46+
id: setup-chrome
4747
- run: npm install -g npm@6.14.18
4848
- run: npm install
4949
working-directory: ./frontend
5050
- run: npm run test
5151
working-directory: ./frontend
52+
env:
53+
CHROME_BIN: ${{ steps.setup-chrome.outputs.chrome-path }}
5254

5355
node-next-test:
5456
strategy:
@@ -58,14 +60,16 @@ jobs:
5860
if: ${{ needs.changes.outputs.frontend == 'true' }}
5961
runs-on: ubuntu-latest
6062
timeout-minutes: 7
61-
env:
62-
CHROME_BIN: google-chrome
6363
steps:
6464
- uses: actions/checkout@v4
6565
- uses: actions/setup-node@v4
6666
with:
6767
node-version: ${{ matrix.node_version }}
68+
- uses: browser-actions/setup-chrome@v2
69+
id: setup-chrome
6870
- run: npm install
6971
working-directory: ./frontend
7072
- run: npm run test
7173
working-directory: ./frontend
74+
env:
75+
CHROME_BIN: ${{ steps.setup-chrome.outputs.chrome-path }}

0 commit comments

Comments
 (0)