From d67b12bd47337837cd839d0da780e3f9462d7b25 Mon Sep 17 00:00:00 2001 From: Sri Harsha <12621691+harsha509@users.noreply.github.com> Date: Sun, 23 Jun 2024 15:44:52 +0530 Subject: [PATCH] Update ruby-examples.yml Add step to install SafarTechPreview --- .github/workflows/ruby-examples.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: