From 29db863fcc9683b82cfdd9a50a55fe21dc982008 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 30 Oct 2024 10:11:16 +0000
Subject: [PATCH] Workflows: reuse test.yml in release.yml

---
 .github/workflows/test.yml |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 3f51b24..25951ea 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,5 +1,15 @@
 on:
   pull_request:
+  workflow_call:
+    outputs:
+      artifact_id:
+        value: ${{ jobs.build.outputs.artifactId }}
+      keycloak_version:
+        value: ${{ jobs.build.outputs.keycloakVersion }}
+      project_name:
+        value: ${{ jobs.build.outputs.projectName }}
+      project_version:
+        value: ${{ jobs.build.outputs.projectVersion }}
 
 name: Test
 
@@ -12,14 +22,14 @@
     steps:
       - id: checkout
         name: Checkout code
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
 
       - id: java
         name: Install Java and Maven
-        uses: actions/setup-java@v3
+        uses: actions/setup-java@v4
         with:
           distribution: zulu
-          java-version: 11
+          java-version: 17
 
       - id: vars
         name: Get project variables
@@ -38,7 +48,7 @@
           mvn -B test package
 
       - name: Upload artifact
-        uses: actions/upload-artifact@v3
+        uses: actions/upload-artifact@v4
         with:
           name: jar
           path: target/${{ steps.vars.outputs.artifactId }}-${{ steps.vars.outputs.projectVersion }}.jar
@@ -57,11 +67,11 @@
     steps:
       - id: checkout
         name: Checkout code
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
 
       - id: download_artifact
         name: Download artifact
-        uses: actions/download-artifact@v3
+        uses: actions/download-artifact@v4
         with:
           name: jar
 

--
Gitblit v1.9.1