mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 10:28:10 +08:00
reuse function
This commit is contained in:
@@ -56,7 +56,7 @@ Describe "Xcode" {
|
||||
}
|
||||
|
||||
Context "XCODE_DEVELOPER_DIR" {
|
||||
$stableXcodeVersions = $XCODE_VERSIONS | Where-Object { Test-XcodeStableVersion $_ }
|
||||
$stableXcodeVersions = $XCODE_VERSIONS | Where-Object { Test-XcodeStableRelease -Version $_ }
|
||||
$majorXcodeVersions = $stableXcodeVersions | ForEach-Object { $_.Split(".")[0] } | Select-Object -Unique
|
||||
$testCases = $majorXcodeVersions | ForEach-Object {
|
||||
$majorXcodeVersion = $_
|
||||
@@ -84,7 +84,7 @@ Describe "Xcode" {
|
||||
}
|
||||
|
||||
Describe "Xcode simulators" {
|
||||
$XCODE_VERSIONS | Where-Object { Test-XcodeStableVersion $_ } | ForEach-Object {
|
||||
$XCODE_VERSIONS | Where-Object { Test-XcodeStableRelease -Version $_ } | ForEach-Object {
|
||||
Switch-Xcode -Version $_
|
||||
|
||||
Context "$_" {
|
||||
|
||||
Reference in New Issue
Block a user