1
0
mirror of https://gitea.com/actions/download-artifact.git synced 2026-02-02 20:34:29 +07:00

Add an integration test for skip-decompress

This commit is contained in:
Daniel Kennedy
2026-01-30 14:33:56 -05:00
parent 6d4a0de04f
commit 882c7072ac

View File

@@ -131,3 +131,26 @@ jobs:
Write-Error "File contents of downloaded artifacts are incorrect" Write-Error "File contents of downloaded artifacts are incorrect"
} }
shell: pwsh shell: pwsh
# Test downloading artifact without decompressing (skip-decompress)
- name: Download artifact A without decompressing
uses: ./
with:
name: Artifact-A-${{ matrix.runs-on }}
path: skip-decompress-test
skip-decompress: true
- name: Verify skip-decompress download
run: |
$zipFile = "skip-decompress-test/Artifact-A-${{ matrix.runs-on }}.zip"
if(!(Test-Path -path $zipFile))
{
Write-Error "Expected zip file does not exist at $zipFile"
}
$fileInfo = Get-Item $zipFile
if($fileInfo.Length -eq 0)
{
Write-Error "Downloaded zip file is empty"
}
Write-Host "Successfully downloaded artifact as zip file: $zipFile (size: $($fileInfo.Length) bytes)"
shell: pwsh