From c637fb2d18a440de61b00dbb13377fd559e774f3 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Wed, 30 Mar 2022 11:15:32 +0100 Subject: [PATCH] set intern CHROMEDRIVER version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pins Intern chromedriver to the one available in actions Refs https://github.com/theintern/intern/issues/1159 Co-authored-by: Kristján Oddsson --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51a90c697..1657f4a72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,14 @@ 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')" + cat intern.json + - name: Test run: yarn test