1
0
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:
Daniel Kennedy
2026-01-30 14:45:33 -05:00
parent 882c7072ac
commit c9ff097e79

View File

@@ -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