mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
30 lines
733 B
PowerShell
30 lines
733 B
PowerShell
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
$os = Get-OSVersion
|
|
|
|
Describe "Haskell" -Skip:($os.IsVentura -or $os.IsSonoma) {
|
|
Context "GHCup" {
|
|
It "GHCup" {
|
|
"ghcup --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
Context "GHC" {
|
|
It "GHC" {
|
|
"ghc --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
Context "Cabal" {
|
|
It "Cabal" {
|
|
"cabal --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
Context "Stack" {
|
|
It "Stack" {
|
|
"stack --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Stack hook is not installed" {
|
|
"$HOME/.stack/hooks/ghc-install.sh" | Should -Not -Exist
|
|
}
|
|
}
|
|
}
|