From 882c7072aca331d00cf4ec51fe47912147cdb0b1 Mon Sep 17 00:00:00 2001 From: Daniel Kennedy Date: Fri, 30 Jan 2026 14:33:56 -0500 Subject: [PATCH] Add an integration test for `skip-decompress` --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52158a0..6a417ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -131,3 +131,26 @@ jobs: Write-Error "File contents of downloaded artifacts are incorrect" } 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