Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 12 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down