diff --git a/.github/workflows/ruby-examples.yml b/.github/workflows/ruby-examples.yml index 7c94710fb9bd..55727051434c 100644 --- a/.github/workflows/ruby-examples.yml +++ b/.github/workflows/ruby-examples.yml @@ -31,6 +31,10 @@ jobs: steps: - name: Checkout GitHub repo uses: actions/checkout@v4 + - name: Install Safari Technology Preview + if: matrix.os == 'macos-latest' + run: | + brew install --cask safari-technology-preview - name: Remove driver directories Windows if: matrix.os == 'windows-latest' run: | @@ -80,6 +84,14 @@ jobs: with: distribution: 'temurin' java-version: 11 + - name: Install and Configure Safari and WebDriver + if: matrix.os == 'macos-latest' + run: | + # Check if safaridriver exists + if [[ ! -f "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" ]]; then + echo "safaridriver not found. Exiting." + exit 1 + fi - name: Run tests uses: nick-invision/retry@v3.0.0 with: