mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
16 lines
621 B
PowerShell
16 lines
621 B
PowerShell
Describe "ActionArchiveCache" {
|
|
Context "Action archive cache directory not empty" {
|
|
It "C:\actionarchivecache not empty" {
|
|
(Get-ChildItem -Path "C:\actionarchivecache\*.zip" -Recurse).Count | Should -BeGreaterThan 0
|
|
}
|
|
}
|
|
|
|
Context "Action zipball not empty" {
|
|
$testCases = Get-ChildItem -Path "C:\actionarchivecache\*.zip" -Recurse | ForEach-Object { @{ ActionZipball = $_.FullName } }
|
|
It "<ActionZipball>" -TestCases $testCases {
|
|
param ([string] $ActionZipball)
|
|
(Get-Item "$ActionZipball").Length | Should -BeGreaterThan 0
|
|
}
|
|
}
|
|
}
|