[macOS] Add SwiftFormat for macOS 12 (#5495)

* Add SwiftFormat for macOS 12

* Update docs and pester test
This commit is contained in:
Aleksandr Chebotov
2022-05-06 09:15:33 +02:00
committed by GitHub
parent df8580f2f0
commit 17e6dc8298
3 changed files with 4 additions and 8 deletions

View File

@@ -176,15 +176,10 @@ $toolsList += @(
(Get-GHCupVersion),
(Get-GHCVersion),
(Get-CabalVersion),
(Get-StackVersion)
(Get-StackVersion),
(Get-SwiftFormatVersion)
)
if($os.IsLessThanMonterey) {
$toolsList += @(
(Get-SwiftFormatVersion)
)
}
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
# Linters

View File

@@ -30,7 +30,7 @@ Describe "Subversion" {
}
}
Describe "SwiftFormat" -Skip:($os.IsMonterey) {
Describe "SwiftFormat" {
It "SwiftFormat" {
"swiftformat --version" | Should -ReturnZeroExitCode
}

View File

@@ -127,6 +127,7 @@
"perl",
"sbt",
"subversion",
"swiftformat",
"swig",
"zstd",
"gmp",