mirror of
https://github.com/actions/runner-images.git
synced 2026-01-24 05:23:34 +08:00
[macOS] Add Chrome to arm64 image (#8526)
This commit is contained in:
committed by
GitHub
parent
9e6658b0b2
commit
c598da4d84
@@ -1,7 +1,7 @@
|
||||
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
||||
$os = Get-OSVersion
|
||||
|
||||
Describe "Chrome" -Skip:($os.IsVenturaArm64) {
|
||||
Describe "Chrome" {
|
||||
BeforeAll {
|
||||
$chromeLocation = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
|
||||
$chromeForTestingLocation = "/Applications/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing"
|
||||
@@ -28,9 +28,15 @@ Describe "Chrome" -Skip:($os.IsVenturaArm64) {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Selenium server" -Skip:($os.IsVenturaArm64) {
|
||||
Describe "Selenium server" {
|
||||
It "Selenium server" {
|
||||
(Get-ChildItem -Path "/usr/local/Cellar/selenium-server*/*").Name | Should -BeLike "4.*"
|
||||
$os = Get-OSVersion
|
||||
if ($os.IsVenturaArm64) {
|
||||
$cellarPath = "/opt/homebrew/Cellar"
|
||||
} else {
|
||||
$cellarPath = "/usr/local/Cellar"
|
||||
}
|
||||
(Get-ChildItem -Path "$cellarPath/selenium-server*/*").Name | Should -BeLike "4.*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,4 +72,4 @@ Describe "Safari" {
|
||||
$commandResult.ExitCode | Should -Be 0
|
||||
$commandResult.Output | Should -Be "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user