Skip to content

Commit

Permalink
chore(workflows): add support for extraMavenArgs input to allow runni…
Browse files Browse the repository at this point in the history
…ng additional Maven arguments during tests (#106)
  • Loading branch information
jandroav authored Oct 20, 2023
1 parent eef66f8 commit 6b9df38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/os-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
required: false
default: ''
type: string
extraMavenArgs:
description: 'Specify it if you want to run an extra maven argument'
required: false
default: ''
type: string

env:
MAVEN_VERSION: '3.9.5'
Expand Down Expand Up @@ -160,7 +165,7 @@ jobs:
${{ inputs.extraCommand }}
- name: Run Tests
run: mvn -B jacoco:prepare-agent surefire:test
run: mvn -B jacoco:prepare-agent surefire:test ${{ inputs.extraMavenArgs }}

- name: Archive Test Results - ${{ matrix.os }}
if: ${{ always() }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
required: false
default: ''
type: string
extraMavenArgs:
description: 'Specify it if you want to run an extra maven argument'
required: false
default: ''
type: string
secrets:
SONAR_TOKEN:
description: 'SONAR_TOKEN from the caller workflow'
Expand Down Expand Up @@ -218,7 +223,7 @@ jobs:
${{ inputs.extraCommand }}
- name: Run Tests
run: mvn -B jacoco:prepare-agent surefire:test
run: mvn -B jacoco:prepare-agent surefire:test ${{ inputs.extraMavenArgs }}

- name: Archive Test Results - ${{ matrix.os }}
if: ${{ always() }}
Expand Down

0 comments on commit 6b9df38

Please sign in to comment.