Skip to content

Commit

Permalink
set intern CHROMEDRIVER version
Browse files Browse the repository at this point in the history
Pins Intern chromedriver to the one available in actions

Refs theintern/intern#1159

Co-authored-by: Kristján Oddsson <koddsson@gmail.com>
  • Loading branch information
keithamus and koddsson committed Mar 30, 2022
1 parent 75742d3 commit b1cbe12
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
- run: yarn install
- run: yarn build

- name: Set Chrome Version
run: |
CHROMEVER="$(chromedriver --version | cut -d' ' -f2)"
echo "Actions ChromeDriver is $CHROMEVER"
CONTENTS="$(jq '.tunnelOptions.drivers[0].name = "chrome"' < intern.json)"
CONTENTS="$(echo ${CONTENTS} | jq --arg chromever "$CHROMEVER" '.tunnelOptions.drivers[0].version = $chromever')"
echo "${CONTENTS}" > intern.json
cat intern.json
- name: Test
run: yarn test

Expand Down

0 comments on commit b1cbe12

Please sign in to comment.