Skip to content

Commit 0007298

Browse files
committed
set CHROME_BIN env var so that Chrome version installed by setup-chrome is actually used by karma
1 parent 1a072b3 commit 0007298

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616

1717
steps:
1818
- uses: browser-actions/setup-chrome@v2
19+
id: setup-chrome
1920
with:
2021
chrome-version: 146.0.7649.0
2122
install-chromedriver: true
@@ -25,7 +26,12 @@ jobs:
2526
with:
2627
node-version: ${{ matrix.node-version }}
2728
cache: 'npm'
28-
- run: chrome --version
29+
- name: Set Chrome binary path
30+
run: echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $GITHUB_ENV
31+
- name: Verify Chrome version
32+
run: |
33+
echo "Chrome path: $CHROME_BIN"
34+
$CHROME_BIN --version
2935
- run: ls
3036
- run: npm run pretest
3137
- run: npm ci

0 commit comments

Comments
 (0)