diff --git a/README.md b/README.md index 3eb9fe2b..b6cc41ef 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,8 @@ jobs: | `TestsPath` | The path to the tests to run. | `false` | `tests` | | `StackTraceVerbosity` | Verbosity level of the stack trace. Allowed values: `None`, `FirstLine`, `Filtered`, `Full`. | `false` | `Filtered` | | `Verbosity` | Verbosity level of the test output. Allowed values: `None`, `Normal`, `Detailed`, `Diagnostic`. | `false` | `Detailed` | +| `VerbosePreference` | The preference for verbose output. Allowed values: `SilentlyContinue`, `Stop`, `Continue`, `Inquire`, `Break`, `Ignore`, `Suspend`. | `false` | `SilentlyContinue` | +| `DebugPreference` | The preference for debug output. Allowed values: `SilentlyContinue`, `Stop`, `Continue`, `Inquire`, `Break`, `Ignore`, `Suspend`. | `false` | `SilentlyContinue` | ### Outputs diff --git a/action.yml b/action.yml index 8aed10f3..a36f735e 100644 --- a/action.yml +++ b/action.yml @@ -27,6 +27,14 @@ inputs: description: "Verbosity level of the test output. Allowed values: 'None', 'Normal', 'Detailed', 'Diagnostic'." required: false default: 'Detailed' + VerbosePreference: + description: "The preference for verbose output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'." + required: false + default: 'SilentlyContinue' + DebugPreference: + description: "The preference for debug output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'." + required: false + default: 'SilentlyContinue' outputs: passed: @@ -49,8 +57,12 @@ runs: GITHUB_ACTION_INPUT_TestsPath: ${{ inputs.TestsPath }} GITHUB_ACTION_INPUT_StackTraceVerbosity: ${{ inputs.StackTraceVerbosity }} GITHUB_ACTION_INPUT_Verbosity: ${{ inputs.Verbosity }} + GITHUB_ACTION_INPUT_VerbosePreference: ${{ inputs.VerbosePreference }} + GITHUB_ACTION_INPUT_DebugPreference: ${{ inputs.DebugPreference }} run: | # Test-PSModule + $VerbosePreference = $env:GITHUB_ACTION_INPUT_VerbosePreference + $DebugPreference = $env:GITHUB_ACTION_INPUT_DebugPreference $passed = . "${{ github.action_path }}\scripts\main.ps1" -Verbose "passed=$passed" | Out-File -FilePath $env:GITHUB_OUTPUT -Append