Skip to content

Commit db34c16

Browse files
Aggregate report path test outcomes
1 parent 48408b0 commit db34c16

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/Action-Test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ jobs:
124124
ActionTestReportPaths:
125125
name: Action-Test - [Report Paths]
126126
runs-on: ubuntu-latest
127+
outputs:
128+
Outcome: ${{ steps.action-test.outcome }}
129+
Conclusion: ${{ steps.action-test.conclusion }}
127130
steps:
128131
- name: Checkout repo
129132
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -157,6 +160,9 @@ jobs:
157160
ActionTestInvokePesterDefaultReportPaths:
158161
name: Action-Test - [Invoke-Pester Default Report Paths]
159162
runs-on: ubuntu-latest
163+
outputs:
164+
Outcome: ${{ steps.action-test.outcome }}
165+
Conclusion: ${{ steps.action-test.conclusion }}
160166
steps:
161167
- name: Checkout repo
162168
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -231,6 +237,10 @@ jobs:
231237
WithManifestConclusion: ${{ needs.ActionTestSrcWithManifest.outputs.Conclusion }}
232238
WithManifestDefaultOutcome: ${{ needs.ActionTestSrcWithManifestDefault.outputs.Outcome }}
233239
WithManifestDefaultConclusion: ${{ needs.ActionTestSrcWithManifestDefault.outputs.Conclusion }}
240+
ReportPathsOutcome: ${{ needs.ActionTestReportPaths.outputs.Outcome }}
241+
ReportPathsConclusion: ${{ needs.ActionTestReportPaths.outputs.Conclusion }}
242+
InvokePesterDefaultReportPathsOutcome: ${{ needs.ActionTestInvokePesterDefaultReportPaths.outputs.Outcome }}
243+
InvokePesterDefaultReportPathsConclusion: ${{ needs.ActionTestInvokePesterDefaultReportPaths.outputs.Conclusion }}
234244
OutputsOutcome: ${{ needs.ActionTestOutputs.outputs.Outcome }}
235245
OutputsConclusion: ${{ needs.ActionTestOutputs.outputs.Conclusion }}
236246
steps:

tests/Get-AggregatedStatus.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ $jobs = @(
5151
Outcome = @{ Actual = $env:WithManifestDefaultOutcome; Expected = 'failure' }
5252
Conclusion = @{ Actual = $env:WithManifestDefaultConclusion; Expected = 'success' }
5353
}
54+
@{
55+
Name = 'Action-Test - [Report Paths]'
56+
Outcome = @{ Actual = $env:ReportPathsOutcome; Expected = 'success' }
57+
Conclusion = @{ Actual = $env:ReportPathsConclusion; Expected = 'success' }
58+
}
59+
@{
60+
Name = 'Action-Test - [Invoke-Pester Default Report Paths]'
61+
Outcome = @{ Actual = $env:InvokePesterDefaultReportPathsOutcome; Expected = 'success' }
62+
Conclusion = @{ Actual = $env:InvokePesterDefaultReportPathsConclusion; Expected = 'success' }
63+
}
5464
@{
5565
Name = 'Action-Test - [outputs]'
5666
Outcome = @{ Actual = $env:OutputsOutcome; Expected = 'success' }

0 commit comments

Comments
 (0)