Skip to content

Commit

Permalink
Add test report suffixes to build-reusable
Browse files Browse the repository at this point in the history
This prevents name collisions if `build-reusable` is called multiple
times.
  • Loading branch information
ppkarwasz committed Oct 17, 2024
1 parent a757614 commit 7c98402
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ on:
description: Flag indicating if Maven `site` goal should be run
default: false
type: boolean
test-report-enabled:
description: Enables the upload of test reports
default: true
type: boolean
test-report-suffix:
description: Suffix to add to the uploaded artifacts
default: ''
type: string

secrets:
DV_ACCESS_TOKEN:
Expand Down Expand Up @@ -127,11 +135,10 @@ jobs:
# We upload tests results.
- name: Upload test reports
id: surefire
if: always()
if: ${{ always() && inputs.test-report-enabled }}
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # 4.4.3
with:
name: "${{github.action}}-${{matrix.os}}-${{github.run_number}}-${{github.run_attempt}}"
name: "test-report-${{matrix.os}}-${{github.run_number}}-${{github.run_attempt}}${{inputs.test-report-suffix}}"
path: |
**/target/surefire-reports
**/target/logs
Expand Down

0 comments on commit 7c98402

Please sign in to comment.