Skip to content

Commit ca03809

Browse files
feat: Add support for prescript execution in Action-Test workflow
1 parent eaf8812 commit ca03809

6 files changed

Lines changed: 162 additions & 56 deletions

File tree

.github/workflows/Action-Test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,37 @@ jobs:
208208
CONCLUSION: ${{ steps.action-test.conclusion }}
209209
run: tests/Show-Status.ps1
210210

211+
ActionTest2StandardPrescriptFile:
212+
name: Action-Test - [2-Standard-PrescriptFile]
213+
runs-on: ubuntu-latest
214+
outputs:
215+
Outcome: ${{ steps.action-test.outcome }}
216+
Conclusion: ${{ steps.action-test.conclusion }}
217+
Executed: ${{ steps.action-test.outputs.Executed }}
218+
Result: ${{ steps.action-test.outputs.Result }}
219+
220+
steps:
221+
# Need to check out as part of the test, as its a local action
222+
- name: Checkout repo
223+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
224+
with:
225+
persist-credentials: false
226+
227+
- name: Action-Test [2-Standard-PrescriptFile]
228+
uses: ./
229+
id: action-test
230+
with:
231+
WorkingDirectory: tests/2-Standard
232+
Output_CIFormat: GithubActions
233+
Prescript: Prescript.ps1
234+
235+
- name: Status
236+
shell: pwsh
237+
env:
238+
OUTCOME: ${{ steps.action-test.outcome }}
239+
CONCLUSION: ${{ steps.action-test.conclusion }}
240+
run: tests/Show-Status.ps1
241+
211242
ActionTest2StandardNoSummary:
212243
name: Action-Test - [2-Standard-NoSummary]
213244
runs-on: ubuntu-latest
@@ -279,6 +310,7 @@ jobs:
279310
- ActionTest1SimpleFailureOnlyFailedSummary
280311
- ActionTest1SimpleExecutionFailure
281312
- ActionTest2Standard
313+
- ActionTest2StandardPrescriptFile
282314
- ActionTest2StandardNoSummary
283315
- ActionTest3Advanced
284316
if: always()
@@ -316,6 +348,10 @@ jobs:
316348
ACTIONTEST2STANDARD_CONCLUSION: ${{ needs.ActionTest2Standard.outputs.Conclusion }}
317349
ACTIONTEST2STANDARD_EXECUTED: ${{ needs.ActionTest2Standard.outputs.Executed }}
318350
ACTIONTEST2STANDARD_RESULT: ${{ needs.ActionTest2Standard.outputs.Result }}
351+
ACTIONTEST2STANDARDPRESCRIPTFILE_OUTCOME: ${{ needs.ActionTest2StandardPrescriptFile.outputs.Outcome }}
352+
ACTIONTEST2STANDARDPRESCRIPTFILE_CONCLUSION: ${{ needs.ActionTest2StandardPrescriptFile.outputs.Conclusion }}
353+
ACTIONTEST2STANDARDPRESCRIPTFILE_EXECUTED: ${{ needs.ActionTest2StandardPrescriptFile.outputs.Executed }}
354+
ACTIONTEST2STANDARDPRESCRIPTFILE_RESULT: ${{ needs.ActionTest2StandardPrescriptFile.outputs.Result }}
319355
ACTIONTEST2STANDARDNOSUMMARY_OUTCOME: ${{ needs.ActionTest2StandardNoSummary.outputs.Outcome }}
320356
ACTIONTEST2STANDARDNOSUMMARY_CONCLUSION: ${{ needs.ActionTest2StandardNoSummary.outputs.Conclusion }}
321357
ACTIONTEST2STANDARDNOSUMMARY_EXECUTED: ${{ needs.ActionTest2StandardNoSummary.outputs.Executed }}

0 commit comments

Comments
 (0)