Skip to content

Commit a7c8d20

Browse files
authored
[windows] Add a test to make sure version 9 is the default one (actions#3377)
1 parent 15a6106 commit a7c8d20

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

images/win/scripts/Tests/Haskell.Tests.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ Describe "Haskell" {
3636
"ghc --version" | Should -MatchCommandOutput $defaultGhcShortVersion
3737
}
3838

39+
# Sometimes choco doesn't return version 9, need to check it explicitly https://github.com/chocolatey/choco/issues/2271
40+
It "Default GHC version is 9" -TestCases $ghcDefaultCases {
41+
"ghc --version" | Should -MatchCommandOutput "9(\.\d+){2,}"
42+
}
43+
3944
It "Cabal is installed" {
4045
"cabal --version" | Should -ReturnZeroExitCode
4146
}

0 commit comments

Comments
 (0)