From 497a2255723ba822722197b903341445d20b531c Mon Sep 17 00:00:00 2001 From: slinkydeveloper Date: Thu, 15 Aug 2024 10:12:23 +0200 Subject: [PATCH] A couple of changes to allow override the test artifact output (which would otherwise conflict) --- .github/workflows/integration.yaml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 29e486c8b..2e412e6ae 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -32,10 +32,16 @@ on: required: false default: 'ghcr.io/restatedev/restate:main' type: string - env_vars: - required: true + envVars: + required: false + type: string + description: list of vars and values used when running the test tool + example: | + THIS_ENV_VAR=true + testArtifactOutput: + required: false type: string - description: list of vars and values + description: name of the test artifact output jobs: @@ -97,10 +103,10 @@ jobs: - name: Build restatedev/java-test-services image run: ./gradlew -Djib.console=plain :test-services:jibDockerBuild - - name: set environment variables - if: ${{ inputs.env_vars }} + - name: Set environment variables + if: ${{ inputs.envVars }} run: | - for env in "${{ inputs.env_vars }}" + for env in "${{ inputs.envVars }}" do printf "%s\n" $env >> $GITHUB_ENV done @@ -115,7 +121,7 @@ jobs: - uses: actions/upload-artifact@v4 if: always() # Make sure this is run even when test fails with: - name: sdk-java-integration-test-report + name: ${{ inputs.testArtifactOutput != '' && inputs.testArtifactOutput || 'sdk-java-integration-test-report' }} path: test-report - name: Publish Test Results uses: EnricoMi/publish-unit-test-result-action@v2