From 162361ec175b79fc812c827437ca0167f0189e5b Mon Sep 17 00:00:00 2001 From: Alex Brackx Date: Tue, 16 Jul 2024 07:40:33 -0400 Subject: [PATCH] Add artifact path optional parameter to extension test workflow. Use extra maven args when making the initial package. --- .github/workflows/pro-extension-test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pro-extension-test.yml b/.github/workflows/pro-extension-test.yml index 74e594bd..ddd41ceb 100644 --- a/.github/workflows/pro-extension-test.yml +++ b/.github/workflows/pro-extension-test.yml @@ -43,6 +43,11 @@ on: required: false default: "coverage" type: string + artifactPath: + description: "Specify the path to the artifacts that should be attached to the build. Useful for multi-module extensions." + required: false + default: "target/*" + type: string secrets: SONAR_TOKEN: description: "SONAR_TOKEN from the caller workflow" @@ -156,7 +161,7 @@ jobs: - name: Build and Package if: ${{ !inputs.nightly }} - run: mvn -B dependency:go-offline clean package -DskipTests=true + run: mvn -B dependency:go-offline clean package -DskipTests=true ${{ inputs.extraMavenArgs }} - name: Get Artifact ID id: get-artifact-id @@ -167,7 +172,7 @@ jobs: with: name: ${{ steps.get-artifact-id.outputs.artifact_id }}-artifacts path: | - target/* + ${{ inputs.artifactPath }} - name: Save Event File uses: actions/upload-artifact@v3