Skip to content

Commit b1cbe12

Browse files
keithamuskoddsson
andcommitted
set intern CHROMEDRIVER version
Pins Intern chromedriver to the one available in actions Refs theintern/intern#1159 Co-authored-by: Kristján Oddsson <[email protected]>
1 parent 75742d3 commit b1cbe12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
- run: yarn install
2121
- run: yarn build
2222

23+
- name: Set Chrome Version
24+
run: |
25+
CHROMEVER="$(chromedriver --version | cut -d' ' -f2)"
26+
echo "Actions ChromeDriver is $CHROMEVER"
27+
CONTENTS="$(jq '.tunnelOptions.drivers[0].name = "chrome"' < intern.json)"
28+
CONTENTS="$(echo ${CONTENTS} | jq --arg chromever "$CHROMEVER" '.tunnelOptions.drivers[0].version = $chromever')"
29+
echo "${CONTENTS}" > intern.json
30+
cat intern.json
31+
2332
- name: Test
2433
run: yarn test
2534

0 commit comments

Comments
 (0)