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.
This commit is contained in:
Christopher Allen
2021-06-11 13:37:56 +01:00
committed by Christopher Allen
parent 5cc0df775d
commit ab33cd567a

View File

@@ -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 &