mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
[macOS] Add SwiftFormat for macOS 12 (#5495)
* Add SwiftFormat for macOS 12 * Update docs and pester test
This commit is contained in:
committed by
GitHub
parent
df8580f2f0
commit
17e6dc8298
@@ -176,14 +176,9 @@ $toolsList += @(
|
|||||||
(Get-GHCupVersion),
|
(Get-GHCupVersion),
|
||||||
(Get-GHCVersion),
|
(Get-GHCVersion),
|
||||||
(Get-CabalVersion),
|
(Get-CabalVersion),
|
||||||
(Get-StackVersion)
|
(Get-StackVersion),
|
||||||
)
|
|
||||||
|
|
||||||
if($os.IsLessThanMonterey) {
|
|
||||||
$toolsList += @(
|
|
||||||
(Get-SwiftFormatVersion)
|
(Get-SwiftFormatVersion)
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
|
||||||
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
|
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ Describe "Subversion" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "SwiftFormat" -Skip:($os.IsMonterey) {
|
Describe "SwiftFormat" {
|
||||||
It "SwiftFormat" {
|
It "SwiftFormat" {
|
||||||
"swiftformat --version" | Should -ReturnZeroExitCode
|
"swiftformat --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,6 +127,7 @@
|
|||||||
"perl",
|
"perl",
|
||||||
"sbt",
|
"sbt",
|
||||||
"subversion",
|
"subversion",
|
||||||
|
"swiftformat",
|
||||||
"swig",
|
"swig",
|
||||||
"zstd",
|
"zstd",
|
||||||
"gmp",
|
"gmp",
|
||||||
|
|||||||
Reference in New Issue
Block a user