From ab33cd567a5b6f60ceb7f71d1f8912445eba426b Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Fri, 11 Jun 2021 13:37:56 +0100 Subject: [PATCH] Update test setup for GitHub Actions - Do the (hopefully now) correct test to check we are on macOS. - Fix brew command-line syntax for installing google-chrome. --- tests/scripts/setup_osx_env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/setup_osx_env.sh b/tests/scripts/setup_osx_env.sh index 5a7092269..6f3100838 100755 --- a/tests/scripts/setup_osx_env.sh +++ b/tests/scripts/setup_osx_env.sh @@ -1,8 +1,8 @@ #!/bin/bash -if [ "${TRAVIS_OS_NAME}" == "osx" ] +if [ "${RUNNER_OS}" == "macOS" ] then - brew cask install google-chrome + brew install google-chrome sudo Xvfb :99 -ac -screen 0 1024x768x8 & export CHROME_BIN="/Applications/Google Chrome.app" npm run test:prepare > /dev/null &