Skip to content

Commit

Permalink
🔧 (.github/workflows/pro-extension-test.yml): refactor test running s…
Browse files Browse the repository at this point in the history
…cript to handle extra Maven arguments more efficiently and consistently
  • Loading branch information
Alejandro Alvarez committed Aug 27, 2024
1 parent db6ef5c commit 294145d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,21 @@ jobs:
- name: Run Tests
if: ${{ !inputs.nightly }}
shell: bash
run: mvn -B test -P '${{ inputs.mavenProfiles }}' ${${{ inputs.extraMavenArgs }}:+\"${{ inputs.extraMavenArgs }}\"}

run: |
if [ -n "${{ inputs.extraMavenArgs }}" ]; then
mvn -B test -P '${{ inputs.mavenProfiles }}' "${{ inputs.extraMavenArgs }}"
else
mvn -B test -P '${{ inputs.mavenProfiles }}'
fi
- name: Run Tests
if: ${{ inputs.nightly }}
shell: bash
run: mvn -B test -P '${{ inputs.mavenProfiles }}' ${${{ inputs.extraMavenArgs }}:+\"${{ inputs.extraMavenArgs }}\"} "-Dliquibase.version=master-SNAPSHOT"
run: |
if [ -n "${{ inputs.extraMavenArgs }}" ]; then
mvn -B test -P '${{ inputs.mavenProfiles }}' "${{ inputs.extraMavenArgs }}" "-Dliquibase.version=master-SNAPSHOT"
else
mvn -B test -P '${{ inputs.mavenProfiles }}' "-Dliquibase.version=master-SNAPSHOT"
fi
- name: Notify Slack on Build Failure
if: ${{ failure() && inputs.nightly }}
Expand Down

0 comments on commit 294145d

Please sign in to comment.