mirror of
https://gitea.com/actions/download-artifact.git
synced 2026-02-02 04:14:29 +07:00
Update the integration test
This commit is contained in:
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@@ -142,15 +142,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Verify skip-decompress download
|
- name: Verify skip-decompress download
|
||||||
run: |
|
run: |
|
||||||
$zipFile = "skip-decompress-test/Artifact-A-${{ matrix.runs-on }}.zip"
|
$rawFile = "skip-decompress-test/artifact"
|
||||||
if(!(Test-Path -path $zipFile))
|
if(!(Test-Path -path $rawFile))
|
||||||
{
|
{
|
||||||
Write-Error "Expected zip file does not exist at $zipFile"
|
Write-Error "Expected raw artifact file does not exist at $rawFile"
|
||||||
}
|
}
|
||||||
$fileInfo = Get-Item $zipFile
|
$fileInfo = Get-Item $rawFile
|
||||||
if($fileInfo.Length -eq 0)
|
if($fileInfo.Length -eq 0)
|
||||||
{
|
{
|
||||||
Write-Error "Downloaded zip file is empty"
|
Write-Error "Downloaded artifact file is empty"
|
||||||
}
|
}
|
||||||
Write-Host "Successfully downloaded artifact as zip file: $zipFile (size: $($fileInfo.Length) bytes)"
|
Write-Host "Successfully downloaded artifact without decompressing: $rawFile (size: $($fileInfo.Length) bytes)"
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|||||||
Reference in New Issue
Block a user