Skip to content

Commit 34cdad7

Browse files
authored
Update ruby-examples.yml (#1777)
Add step to install SafarTechPreview
1 parent 877906f commit 34cdad7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ruby-examples.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
steps:
3232
- name: Checkout GitHub repo
3333
uses: actions/checkout@v4
34+
- name: Install Safari Technology Preview
35+
if: matrix.os == 'macos-latest'
36+
run: |
37+
brew install --cask safari-technology-preview
3438
- name: Remove driver directories Windows
3539
if: matrix.os == 'windows-latest'
3640
run: |
@@ -80,6 +84,14 @@ jobs:
8084
with:
8185
distribution: 'temurin'
8286
java-version: 11
87+
- name: Install and Configure Safari and WebDriver
88+
if: matrix.os == 'macos-latest'
89+
run: |
90+
# Check if safaridriver exists
91+
if [[ ! -f "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" ]]; then
92+
echo "safaridriver not found. Exiting."
93+
exit 1
94+
fi
8395
- name: Run tests
8496
uses: nick-invision/retry@v3.0.0
8597
with:

0 commit comments

Comments
 (0)