Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Feb 24, 2024
1 parent 4f3eb48 commit bc5a710
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/build_workflow.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,25 @@ workflow(
)
uses(
name = "Upload test reports",
action = CustomAction(
actionOwner = "mikepenz",
actionName = "action-junit-report",
actionVersion = "v4",
inputs = mapOf(
"report_paths" to "**/build/test-results/**/TEST-*.xml",
)
action = UploadArtifactV4(
name = "Junit",
path = listOf("**/build/test-results"),
retentionDays = UploadArtifactV4.RetentionPeriod.Default,
),
`if` = expr { failure() }
`if` = expr { always() }
)
// TODO enable on main
// uses(
// name = "Upload test reports",
// action = CustomAction(
// actionOwner = "mikepenz",
// actionName = "action-junit-report",
// actionVersion = "v4",
// inputs = mapOf(
// "report_paths" to "**/build/test-results/**/TEST-*.xml",
// )
// ),
// `if` = expr { failure() }
// )
}
}.writeToFile()
8 changes: 5 additions & 3 deletions .github/workflows/build_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ jobs:
if: '${{ always() }}'
- id: 'step-4'
name: 'Upload test reports'
uses: 'mikepenz/action-junit-report@v4'
uses: 'actions/upload-artifact@v4'
with:
report_paths: '**/build/test-results/**/TEST-*.xml'
if: '${{ failure() }}'
name: 'Junit'
path: '**/build/test-results'
retention-days: '0'
if: '${{ always() }}'

0 comments on commit bc5a710

Please sign in to comment.