Skip to content

Commit fceef0c

Browse files
committed
Fix CI runners
1 parent 9472934 commit fceef0c

6 files changed

Lines changed: 16 additions & 10 deletions

ci/macos-latest-chrome

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/bash
2-
brew install --cask google-chrome
2+
# Chrome and chromedriver are pre-installed on GitHub-hosted macOS runners.
3+
"$CHROMEWEBDRIVER/chromedriver" --port=9515 &

ci/macos-latest-firefox

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/bash
2-
brew install --cask firefox
2+
# Firefox and geckodriver are pre-installed on GitHub-hosted macOS runners.
3+
"$GECKOWEBDRIVER/geckodriver" --port=4444 &

ci/ubuntu-latest-chrome

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
2-
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
3-
sudo dpkg -i google-chrome-stable_current_amd64.deb
4-
sudo apt install -f -y
2+
# Chrome and chromedriver are pre-installed on GitHub-hosted Ubuntu runners.
3+
# CHROMEWEBDRIVER points at the directory holding the version-matched binary.
4+
"$CHROMEWEBDRIVER/chromedriver" --port=9515 &

ci/ubuntu-latest-firefox

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2-
sudo apt-get update
3-
sudo apt-get install firefox
2+
# Firefox and geckodriver are pre-installed on GitHub-hosted Ubuntu runners.
3+
# GECKOWEBDRIVER points at the directory holding the version-matched binary.
4+
"$GECKOWEBDRIVER/geckodriver" --port=4444 &

ci/windows-latest-chrome.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# Fix: sometimes, Chrome is updated but its checksum is not. Ignore this mismatch.
2-
choco install googlechrome --ignore-checksums -y
1+
# Chrome and chromedriver are pre-installed on GitHub-hosted Windows runners.
2+
Start-Process -FilePath "$env:CHROMEWEBDRIVER\chromedriver.exe" -ArgumentList "--port=9515"
3+
Start-Sleep -Seconds 1

ci/windows-latest-firefox.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
choco install firefox
1+
# Firefox and geckodriver are pre-installed on GitHub-hosted Windows runners.
2+
Start-Process -FilePath "$env:GECKOWEBDRIVER\geckodriver.exe" -ArgumentList "--port=4444"
3+
Start-Sleep -Seconds 1

0 commit comments

Comments
 (0)