mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
add correct path to install haskell
This commit is contained in:
@@ -9,7 +9,8 @@ Describe "Haskell" {
|
||||
$ghcVersion = $_
|
||||
$ghcShortVersion = ([version]$ghcVersion).ToString(3)
|
||||
@{
|
||||
ghcVersion = $ghcShortVersion
|
||||
ghcVersion = $ghcVersion
|
||||
ghcShortVersion = $ghcShortVersion
|
||||
binGhcPath = Join-Path $chocoPackagesPath "ghc.$ghcVersion\tools\ghc-$ghcShortVersion\bin\ghc.exe"
|
||||
}
|
||||
}
|
||||
@@ -19,11 +20,11 @@ Describe "Haskell" {
|
||||
}
|
||||
|
||||
It "GHC <ghcVersion> is installed" -TestCases $ghcTestCases {
|
||||
"$binGhcPath --version" | Should -MatchCommandOutput $ghcVersion
|
||||
"$binGhcPath --version" | Should -MatchCommandOutput $ghcShortVersion
|
||||
}
|
||||
|
||||
It "GHC <defaultGhcVersion> is the default version and should be the latest installed" -TestCases @{defaultGhcVersion = $defaultGhcShortVersion} {
|
||||
"ghc --version" | Should -MatchCommandOutput $defaultGhcVersion
|
||||
It "GHC <defaultGhcVersion> is the default version and should be the latest installed" -TestCases @{defaultGhcShortVersion = $defaultGhcShortVersion} {
|
||||
"ghc --version" | Should -MatchCommandOutput $defaultGhcShortVersion
|
||||
}
|
||||
|
||||
It "Cabal is installed" {
|
||||
|
||||
Reference in New Issue
Block a user