Skip to content

Action-Test - [Bump actions/checkout from 7.0.0 to 7.0.1 #77] by @dependabot[bot] #1121

Action-Test - [Bump actions/checkout from 7.0.0 to 7.0.1 #77] by @dependabot[bot]

Action-Test - [Bump actions/checkout from 7.0.0 to 7.0.1 #77] by @dependabot[bot] #1121

Workflow file for this run

name: Action-Test
run-name: 'Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}'
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
ActionTest1Simple:
name: Action-Test - [1-Simple]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [1-Simple]
uses: ./
id: action-test
with:
WorkingDirectory: tests/1-Simple
Debug: true
Verbose: true
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTest1SimpleFile:
name: Action-Test - [1-Simple-File]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [1-Simple-File]
uses: ./
id: action-test
with:
WorkingDirectory: tests/1-Simple
Path: Emoji.Tests.ps1
Run_Path: Emoji
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTest1SimpleFailure:
name: Action-Test - [1-Simple-Failure]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [1-Simple-Failure]
uses: ./
id: action-test
continue-on-error: true
with:
WorkingDirectory: tests/1-Simple-Failure
StepSummary_Mode: Full
StepSummary_ShowTestOverview: true
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTest1SimpleFailureOnlyFailedSummary:
name: Action-Test - [1-Simple-Failure-OnlyFailedSummary]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [1-Simple-Failure]
uses: ./
id: action-test
continue-on-error: true
with:
WorkingDirectory: tests/1-Simple-Failure
TestResult_TestSuiteName: 1-Simple-Failure
StepSummary_ShowConfiguration: true
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTest1SimpleExecutionFailure:
name: Action-Test - [1-Simple-ExecutionFailure]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [1-Simple-ExecutionFailure]
uses: ./
id: action-test
continue-on-error: true
with:
WorkingDirectory: tests/1-Simple-ExecutionFailure
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTest2Standard:
name: Action-Test - [2-Standard]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [2-Standard]
uses: ./
id: action-test
env:
RUNNER_OS: ${{ runner.os }}
with:
WorkingDirectory: tests/2-Standard
Output_CIFormat: GithubActions
Prescript: |
Write-Host "This is a prescript"
Write-Host "We are running on $env:RUNNER_OS"
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTest2StandardPrescriptFile:
name: Action-Test - [2-Standard-PrescriptFile]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [2-Standard-PrescriptFile]
uses: ./
id: action-test
with:
WorkingDirectory: tests/2-Standard
Output_CIFormat: GithubActions
Prescript: ../Prescript.ps1
TestResult_TestSuiteName: 2-Standard-PrescriptFile
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTest2StandardNoSummary:
name: Action-Test - [2-Standard-NoSummary]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [2-Standard-NoSummary]
uses: ./
id: action-test
with:
WorkingDirectory: tests/2-Standard
Output_CIFormat: GithubActions
TestResult_TestSuiteName: 2-Standard-NoSummary
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTest3Advanced:
name: Action-Test - [3-Advanced]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [3-Advanced]
uses: ./
id: action-test
with:
Path: Pester.Configuration.ps1
WorkingDirectory: tests/3-Advanced
StepSummary_Mode: None
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTestPester5RangeConstraint:
name: Action-Test - [Pester 5.x Range Constraint]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [Pester 5.x Range Constraint]
uses: ./
id: action-test
with:
WorkingDirectory: tests/4-PesterVersionConstraints/Pester5Range
Version: '[5.0.0,6.0.0)'
TestResult_TestSuiteName: Pester5RangeConstraint
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTestPester6ExactConstraint:
name: Action-Test - [Pester 6.0.0 Exact Constraint]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [Pester 6.0.0 Exact Constraint]
uses: ./
id: action-test
with:
WorkingDirectory: tests/4-PesterVersionConstraints/Pester6Exact
Version: '6.0.0'
TestResult_TestSuiteName: Pester6ExactConstraint
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTestPesterGuidPin:
name: Action-Test - [Pester GUID Pin]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Action-Test [Pester GUID Pin]
uses: ./
id: action-test
with:
WorkingDirectory: tests/4-PesterVersionConstraints/PesterGuidPin
Version: '6.0.0'
Guid: 'a699dea5-2c73-4616-a270-1f7abb777e71'
TestResult_TestSuiteName: PesterGuidPin
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTestPesterGuidMatch:
name: Action-Test - [Pester GUID Match]
runs-on: ubuntu-latest
outputs:
Outcome: ${{ steps.action-test.outcome }}
Conclusion: ${{ steps.action-test.conclusion }}
Executed: ${{ steps.action-test.outputs.Executed }}
Result: ${{ steps.action-test.outputs.Result }}
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# A matching GUID passed via the action input must let the run proceed and the tests pass.
- name: Action-Test [Pester GUID Match]
uses: ./
id: action-test
with:
WorkingDirectory: tests/4-PesterVersionConstraints/PesterGuidMatch
Version: '6.0.0'
Guid: 'a699dea5-2c73-4616-a270-1f7abb777e71'
TestResult_TestSuiteName: PesterGuidMatch
- name: Status
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
CONCLUSION: ${{ steps.action-test.conclusion }}
run: tests/Show-Status.ps1
ActionTestPesterGuidMismatch:
name: Action-Test - [Pester GUID Mismatch]
runs-on: ubuntu-latest
steps:
# Need to check out as part of the test, as it's a local action
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# A wrong GUID must make the action fail fast during init, before any tests run.
- name: Action-Test [Pester GUID Mismatch]
uses: ./
id: action-test
continue-on-error: true
with:
WorkingDirectory: tests/2-Standard
Version: '6.0.0'
Guid: '00000000-0000-0000-0000-000000000000'
- name: Assert the action failed on the GUID mismatch
shell: pwsh
env:
OUTCOME: ${{ steps.action-test.outcome }}
run: |
if ($env:OUTCOME -ne 'failure') {
Write-Error "Expected the action to fail on a GUID mismatch, but the outcome was '$env:OUTCOME'."
exit 1
}
Write-Output 'Action failed as expected on the GUID mismatch.'
CatchJob:
name: Catch Job - Aggregate Status
needs:
- ActionTest1Simple
- ActionTest1SimpleFile
- ActionTest1SimpleFailure
- ActionTest1SimpleFailureOnlyFailedSummary
- ActionTest1SimpleExecutionFailure
- ActionTest2Standard
- ActionTest2StandardPrescriptFile
- ActionTest2StandardNoSummary
- ActionTest3Advanced
- ActionTestPester5RangeConstraint
- ActionTestPester6ExactConstraint
- ActionTestPesterGuidPin
- ActionTestPesterGuidMatch
- ActionTestPesterGuidMismatch
if: always()
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Display Aggregated Results as a Table
uses: PSModule/GitHub-Script@8083ec1f733f00357ee4d0db0c6056686e483bc0 # v1.9.0
env:
ACTIONTEST1SIMPLE_OUTCOME: ${{ needs.ActionTest1Simple.outputs.Outcome }}
ACTIONTEST1SIMPLE_CONCLUSION: ${{ needs.ActionTest1Simple.outputs.Conclusion }}
ACTIONTEST1SIMPLE_EXECUTED: ${{ needs.ActionTest1Simple.outputs.Executed }}
ACTIONTEST1SIMPLE_RESULT: ${{ needs.ActionTest1Simple.outputs.Result }}
ACTIONTEST1SIMPLEFILE_OUTCOME: ${{ needs.ActionTest1SimpleFile.outputs.Outcome }}
ACTIONTEST1SIMPLEFILE_CONCLUSION: ${{ needs.ActionTest1SimpleFile.outputs.Conclusion }}
ACTIONTEST1SIMPLEFILE_EXECUTED: ${{ needs.ActionTest1SimpleFile.outputs.Executed }}
ACTIONTEST1SIMPLEFILE_RESULT: ${{ needs.ActionTest1SimpleFile.outputs.Result }}
ACTIONTEST1SIMPLEFAILURE_OUTCOME: ${{ needs.ActionTest1SimpleFailure.outputs.Outcome }}
ACTIONTEST1SIMPLEFAILURE_CONCLUSION: ${{ needs.ActionTest1SimpleFailure.outputs.Conclusion }}
ACTIONTEST1SIMPLEFAILURE_EXECUTED: ${{ needs.ActionTest1SimpleFailure.outputs.Executed }}
ACTIONTEST1SIMPLEFAILURE_RESULT: ${{ needs.ActionTest1SimpleFailure.outputs.Result }}
ACTIONTEST1SIMPLEFAILUREONLYFAILEDSUMMARY_OUTCOME: ${{ needs.ActionTest1SimpleFailureOnlyFailedSummary.outputs.Outcome }}
ACTIONTEST1SIMPLEFAILUREONLYFAILEDSUMMARY_CONCLUSION: ${{ needs.ActionTest1SimpleFailureOnlyFailedSummary.outputs.Conclusion }}
ACTIONTEST1SIMPLEFAILUREONLYFAILEDSUMMARY_EXECUTED: ${{ needs.ActionTest1SimpleFailureOnlyFailedSummary.outputs.Executed }}
ACTIONTEST1SIMPLEFAILUREONLYFAILEDSUMMARY_RESULT: ${{ needs.ActionTest1SimpleFailureOnlyFailedSummary.outputs.Result }}
ACTIONTEST1SIMPLEEXECUTIONFAILURE_OUTCOME: ${{ needs.ActionTest1SimpleExecutionFailure.outputs.Outcome }}
ACTIONTEST1SIMPLEEXECUTIONFAILURE_CONCLUSION: ${{ needs.ActionTest1SimpleExecutionFailure.outputs.Conclusion }}
ACTIONTEST1SIMPLEEXECUTIONFAILURE_EXECUTED: ${{ needs.ActionTest1SimpleExecutionFailure.outputs.Executed }}
ACTIONTEST1SIMPLEEXECUTIONFAILURE_RESULT: ${{ needs.ActionTest1SimpleExecutionFailure.outputs.Result }}
ACTIONTEST2STANDARD_OUTCOME: ${{ needs.ActionTest2Standard.outputs.Outcome }}
ACTIONTEST2STANDARD_CONCLUSION: ${{ needs.ActionTest2Standard.outputs.Conclusion }}
ACTIONTEST2STANDARD_EXECUTED: ${{ needs.ActionTest2Standard.outputs.Executed }}
ACTIONTEST2STANDARD_RESULT: ${{ needs.ActionTest2Standard.outputs.Result }}
ACTIONTEST2STANDARDPRESCRIPTFILE_OUTCOME: ${{ needs.ActionTest2StandardPrescriptFile.outputs.Outcome }}
ACTIONTEST2STANDARDPRESCRIPTFILE_CONCLUSION: ${{ needs.ActionTest2StandardPrescriptFile.outputs.Conclusion }}
ACTIONTEST2STANDARDPRESCRIPTFILE_EXECUTED: ${{ needs.ActionTest2StandardPrescriptFile.outputs.Executed }}
ACTIONTEST2STANDARDPRESCRIPTFILE_RESULT: ${{ needs.ActionTest2StandardPrescriptFile.outputs.Result }}
ACTIONTEST2STANDARDNOSUMMARY_OUTCOME: ${{ needs.ActionTest2StandardNoSummary.outputs.Outcome }}
ACTIONTEST2STANDARDNOSUMMARY_CONCLUSION: ${{ needs.ActionTest2StandardNoSummary.outputs.Conclusion }}
ACTIONTEST2STANDARDNOSUMMARY_EXECUTED: ${{ needs.ActionTest2StandardNoSummary.outputs.Executed }}
ACTIONTEST2STANDARDNOSUMMARY_RESULT: ${{ needs.ActionTest2StandardNoSummary.outputs.Result }}
ACTIONTEST3ADVANCED_OUTCOME: ${{ needs.ActionTest3Advanced.outputs.Outcome }}
ACTIONTEST3ADVANCED_CONCLUSION: ${{ needs.ActionTest3Advanced.outputs.Conclusion }}
ACTIONTEST3ADVANCED_EXECUTED: ${{ needs.ActionTest3Advanced.outputs.Executed }}
ACTIONTEST3ADVANCED_RESULT: ${{ needs.ActionTest3Advanced.outputs.Result }}
ACTIONTESTPESTER5RANGECONSTRAINT_OUTCOME: ${{ needs.ActionTestPester5RangeConstraint.outputs.Outcome }}
ACTIONTESTPESTER5RANGECONSTRAINT_CONCLUSION: ${{ needs.ActionTestPester5RangeConstraint.outputs.Conclusion }}
ACTIONTESTPESTER5RANGECONSTRAINT_EXECUTED: ${{ needs.ActionTestPester5RangeConstraint.outputs.Executed }}
ACTIONTESTPESTER5RANGECONSTRAINT_RESULT: ${{ needs.ActionTestPester5RangeConstraint.outputs.Result }}
ACTIONTESTPESTER6EXACTCONSTRAINT_OUTCOME: ${{ needs.ActionTestPester6ExactConstraint.outputs.Outcome }}
ACTIONTESTPESTER6EXACTCONSTRAINT_CONCLUSION: ${{ needs.ActionTestPester6ExactConstraint.outputs.Conclusion }}
ACTIONTESTPESTER6EXACTCONSTRAINT_EXECUTED: ${{ needs.ActionTestPester6ExactConstraint.outputs.Executed }}
ACTIONTESTPESTER6EXACTCONSTRAINT_RESULT: ${{ needs.ActionTestPester6ExactConstraint.outputs.Result }}
ACTIONTESTPESTERGUIDPIN_OUTCOME: ${{ needs.ActionTestPesterGuidPin.outputs.Outcome }}
ACTIONTESTPESTERGUIDPIN_CONCLUSION: ${{ needs.ActionTestPesterGuidPin.outputs.Conclusion }}
ACTIONTESTPESTERGUIDPIN_EXECUTED: ${{ needs.ActionTestPesterGuidPin.outputs.Executed }}
ACTIONTESTPESTERGUIDPIN_RESULT: ${{ needs.ActionTestPesterGuidPin.outputs.Result }}
ACTIONTESTPESTERGUIDMATCH_OUTCOME: ${{ needs.ActionTestPesterGuidMatch.outputs.Outcome }}
ACTIONTESTPESTERGUIDMATCH_CONCLUSION: ${{ needs.ActionTestPesterGuidMatch.outputs.Conclusion }}
ACTIONTESTPESTERGUIDMATCH_EXECUTED: ${{ needs.ActionTestPesterGuidMatch.outputs.Executed }}
ACTIONTESTPESTERGUIDMATCH_RESULT: ${{ needs.ActionTestPesterGuidMatch.outputs.Result }}
with:
Script: tests/Test-ActionResults.ps1