diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b112b39b4..d0775c282 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -47,20 +47,17 @@ jobs: - name: Install timeout util and java run: | brew install coreutils - brew search java brew install java11 - java -version - ls -la /opt/homebrew/Cellar/ - name: Download Selenium Server run: | wget https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.16.0/selenium-server-4.16.1.jar -O selenium-server.jar - name: Setup hub - run: java -jar selenium-server.jar hub > selenium-hub.log 2>&1 & + run: /usr/local/opt/openjdk@11/bin/java -jar selenium-server.jar hub > selenium-hub.log 2>&1 & - name: Setup node - run: java -jar selenium-server.jar node -I "safari" > selenium-node.log 2>&1 & + run: /usr/local/opt/openjdk@11/bin/java -jar selenium-server.jar node -I "safari" > selenium-node.log 2>&1 & - name: Run tests for macos