improve CI PowrShell profile test debug/verbose output

This commit is contained in:
David Refoua
2025-11-09 03:46:29 +03:30
committed by GitHub
parent 153f7310a1
commit a824b721cb
2 changed files with 8 additions and 1 deletions

View File

@@ -47,8 +47,10 @@ jobs:
run: |
cmd /c vendor\init.bat /v /d /t
- name: Testing PowerShell
env:
CMDER_DEBUG: '1'
run: |
PowerShell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -Command "$DebugPreference='Continue'; . 'vendor\profile.ps1' 5>&1"
PowerShell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -Command "'vendor\profile.ps1'"
- name: Testing Bash
run: |
bash vendor/cmder.sh

5
vendor/profile.ps1 vendored
View File

@@ -5,6 +5,11 @@
# !!! THIS FILE IS OVERWRITTEN WHEN CMDER IS UPDATED
# !!! Use "%CMDER_ROOT%\config\user_profile.ps1" to add your own startup commands
if ($env:CMDER_DEBUG -and ($env:CMDER_DEBUG -match '^(1|true)$')) {
$DebugPreference = 'Continue'
$VerbosePreference = 'Continue'
}
$CMDER_INIT_START = Get-Date
# Compatibility with PS major versions <= 2