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" return "Stack $stackVersion"
} }
function Get-SwiftFormatVersion {
$swiftFormatVersion = Run-Command "swiftformat --version"
return "SwiftFormat $swiftFormatVersion"
}
function Get-YamllintVersion { function Get-YamllintVersion {
$yamllintVersion = Run-Command "yamllint --version" $yamllintVersion = Run-Command "yamllint --version"
return $yamllintVersion return $yamllintVersion

View File

@@ -164,7 +164,8 @@ if( -not $os.IsHighSierra) {
(Get-GHCupVersion), (Get-GHCupVersion),
(Get-GHCVersion), (Get-GHCVersion),
(Get-CabalVersion), (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" { Describe "Go" {
It "Go" { It "Go" {
"go version" | Should -ReturnZeroExitCode "go version" | Should -ReturnZeroExitCode

View File

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

View File

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

View File

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