Skip to content

Commit 5575596

Browse files
🩹 [Patch]: Enable verbose and debug output preferences in action script (#80)
## Description This pull request includes updates to the verbosity and debug preferences for test outputs in the `README.md` and `action.yml` files. The most important changes include adding new input parameters for `VerbosePreference` and `DebugPreference` and updating the run commands to utilize these new parameters. Documentation updates: * [`README.md`](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R106-R107): Added descriptions for `VerbosePreference` and `DebugPreference` options to the list of job inputs. Configuration updates: * [`action.yml`](diffhunk://#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R30-R37): Added `VerbosePreference` and `DebugPreference` as new input parameters with descriptions and default values. * [`action.yml`](diffhunk://#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R60-R65): Updated the `runs` section to include the new `VerbosePreference` and `DebugPreference` parameters and set their values in the run commands. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent af1f76f commit 5575596

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ jobs:
103103
| `TestsPath` | The path to the tests to run. | `false` | `tests` |
104104
| `StackTraceVerbosity` | Verbosity level of the stack trace. Allowed values: `None`, `FirstLine`, `Filtered`, `Full`. | `false` | `Filtered` |
105105
| `Verbosity` | Verbosity level of the test output. Allowed values: `None`, `Normal`, `Detailed`, `Diagnostic`. | `false` | `Detailed` |
106+
| `VerbosePreference` | The preference for verbose output. Allowed values: `SilentlyContinue`, `Stop`, `Continue`, `Inquire`, `Break`, `Ignore`, `Suspend`. | `false` | `SilentlyContinue` |
107+
| `DebugPreference` | The preference for debug output. Allowed values: `SilentlyContinue`, `Stop`, `Continue`, `Inquire`, `Break`, `Ignore`, `Suspend`. | `false` | `SilentlyContinue` |
106108

107109
### Outputs
108110

action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ inputs:
2727
description: "Verbosity level of the test output. Allowed values: 'None', 'Normal', 'Detailed', 'Diagnostic'."
2828
required: false
2929
default: 'Detailed'
30+
VerbosePreference:
31+
description: "The preference for verbose output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'."
32+
required: false
33+
default: 'SilentlyContinue'
34+
DebugPreference:
35+
description: "The preference for debug output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'."
36+
required: false
37+
default: 'SilentlyContinue'
3038

3139
outputs:
3240
passed:
@@ -49,8 +57,12 @@ runs:
4957
GITHUB_ACTION_INPUT_TestsPath: ${{ inputs.TestsPath }}
5058
GITHUB_ACTION_INPUT_StackTraceVerbosity: ${{ inputs.StackTraceVerbosity }}
5159
GITHUB_ACTION_INPUT_Verbosity: ${{ inputs.Verbosity }}
60+
GITHUB_ACTION_INPUT_VerbosePreference: ${{ inputs.VerbosePreference }}
61+
GITHUB_ACTION_INPUT_DebugPreference: ${{ inputs.DebugPreference }}
5262
run: |
5363
# Test-PSModule
64+
$VerbosePreference = $env:GITHUB_ACTION_INPUT_VerbosePreference
65+
$DebugPreference = $env:GITHUB_ACTION_INPUT_DebugPreference
5466
$passed = . "${{ github.action_path }}\scripts\main.ps1" -Verbose
5567
"passed=$passed" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
5668

0 commit comments

Comments
 (0)