From f9415c0ec30f02c18e075f091cafcfe4159168d0 Mon Sep 17 00:00:00 2001
From: Josh Gross <joshmgross@github.com>
Date: Wed, 19 Mar 2025 10:53:42 -0400
Subject: [PATCH 1/2] Run unit tests in CI

---
 .github/workflows/test.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index d23bbb7..1a69539 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -40,6 +40,9 @@ jobs:
     - name: Format
       run: npm run format-check
 
+    - name: Run Unit Tests
+      run: npm test
+
     - name: Create artifacts
       run: |
         mkdir -p path/to/artifact-A

From 278fca438a0f334c0505181835b4796f2785949b Mon Sep 17 00:00:00 2001
From: Ryan Ghadimi <114221941+GhadimiR@users.noreply.github.com>
Date: Wed, 19 Mar 2025 15:06:13 +0000
Subject: [PATCH 2/2] Move log statements

---
 dist/index.js            | 6 +++---
 src/download-artifact.ts | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dist/index.js b/dist/index.js
index 50a0229..d0a4ebc 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -118857,10 +118857,10 @@ function run() {
                     core.warning(`Artifact '${artifactName}' digest validation failed. Please verify the integrity of the artifact.`);
                 }
             }
-            core.info(`Total of ${artifacts.length} artifact(s) downloaded`);
-            core.setOutput(constants_1.Outputs.DownloadPath, resolvedPath);
-            core.info('Download artifact has finished successfully');
         }
+        core.info(`Total of ${artifacts.length} artifact(s) downloaded`);
+        core.setOutput(constants_1.Outputs.DownloadPath, resolvedPath);
+        core.info('Download artifact has finished successfully');
     });
 }
 exports.run = run;
diff --git a/src/download-artifact.ts b/src/download-artifact.ts
index 69aaa10..1beef4d 100644
--- a/src/download-artifact.ts
+++ b/src/download-artifact.ts
@@ -138,10 +138,10 @@ export async function run(): Promise<void> {
         )
       }
     }
-    core.info(`Total of ${artifacts.length} artifact(s) downloaded`)
-    core.setOutput(Outputs.DownloadPath, resolvedPath)
-    core.info('Download artifact has finished successfully')
   }
+  core.info(`Total of ${artifacts.length} artifact(s) downloaded`)
+  core.setOutput(Outputs.DownloadPath, resolvedPath)
+  core.info('Download artifact has finished successfully')
 }
 
 run().catch(err =>