mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[ubuntu] Refactor pester tests (#9006)
* [ubuntu] Refactor pester tests * Fix key name and add BeforeAll * Fix ActionArchiveCache test
This commit is contained in:
committed by
GitHub
parent
2179765026
commit
dbb10c67ba
@@ -5,15 +5,13 @@ Describe "Haskell" {
|
||||
$testCase = @{ GHCVersions = $GHCVersions }
|
||||
|
||||
It "GHC directory contains two version of GHC" -TestCases $testCase {
|
||||
param ([object] $GHCVersions)
|
||||
$GHCVersions.Count | Should -Be 2
|
||||
}
|
||||
|
||||
$testCases = $GHCVersions | ForEach-Object { @{ GHCPath = "${_}/bin/ghc"} }
|
||||
|
||||
It "GHC version <GHCPath>" -TestCases $testCases {
|
||||
param ([string] $GHCPath)
|
||||
"$GHCPath --version" | Should -ReturnZeroExitCode
|
||||
"$GHCPath --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "GHCup" {
|
||||
|
||||
Reference in New Issue
Block a user