Add swiftformat for all macOS versions except HS (#3170)

This commit is contained in:
Mikhail Timofeev
2021-04-14 10:22:41 +03:00
committed by GitHub
parent 51d9ece7fe
commit 579dea7415
6 changed files with 16 additions and 1 deletions

View File

@@ -459,6 +459,11 @@ function Get-StackVersion {
return "Stack $stackVersion"
}
function Get-SwiftFormatVersion {
$swiftFormatVersion = Run-Command "swiftformat --version"
return "SwiftFormat $swiftFormatVersion"
}
function Get-YamllintVersion {
$yamllintVersion = Run-Command "yamllint --version"
return $yamllintVersion

View File

@@ -164,7 +164,8 @@ if( -not $os.IsHighSierra) {
(Get-GHCupVersion),
(Get-GHCVersion),
(Get-CabalVersion),
(Get-StackVersion)
(Get-StackVersion),
(Get-SwiftFormatVersion)
)
}

View File

@@ -18,6 +18,12 @@ Describe "Subversion" {
}
}
Describe "SwiftFormat" {
It "SwiftFormat" {
"swiftformat --version" | Should -ReturnZeroExitCode
}
}
Describe "Go" {
It "Go" {
"go version" | Should -ReturnZeroExitCode

View File

@@ -251,6 +251,7 @@
"parallel",
"perl",
"subversion",
"swiftformat",
"xctool",
"zstd"
],

View File

@@ -203,6 +203,7 @@
"parallel",
"perl",
"subversion",
"swiftformat",
"xctool",
"zstd"
],

View File

@@ -135,6 +135,7 @@
"packer",
"perl",
"subversion",
"swiftformat",
"zstd"
],
"cask_packages": [