mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Upload merged JUnit XML.
This commit is contained in:
15
.github/workflows/PublishTestResults.yml
vendored
15
.github/workflows/PublishTestResults.yml
vendored
@@ -24,6 +24,12 @@ name: Publish Unit Test Results
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
merged_junit_artifact:
|
||||||
|
description: 'Name of the merged JUnit Test Summary artifact.'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
PublishTestResults:
|
PublishTestResults:
|
||||||
@@ -72,3 +78,12 @@ jobs:
|
|||||||
name: Unit Test Results
|
name: Unit Test Results
|
||||||
path: junit/merged.xml
|
path: junit/merged.xml
|
||||||
reporter: java-junit
|
reporter: java-junit
|
||||||
|
|
||||||
|
- name: 📤 Upload merged 'JUnit Test Summary' artifact
|
||||||
|
if: inputs.merged_junit_artifact != ''
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ inputs.merged_junit_artifact }}
|
||||||
|
path: junit/merged.xml
|
||||||
|
if-no-files-found: error
|
||||||
|
retention-days: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user