Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit 467e071

Browse files
feat(scripts): add CIHelpers.psm1 shared CI module (#129)
* feat(scripts): add CIHelpers.psm1 shared CI platform abstraction module - add 11 exported functions for CI platform detection and output - support GitHub Actions, Azure DevOps, and local execution modes - include encoding utilities for GHA and ADO logging commands - pass PSScriptAnalyzer validation with project settings 🔧 - Generated by Copilot * fix(scripts): resolve PR review findings for CIHelpers module - remove UTF-8 BOM from CIHelpers.psm1 - sanitize ADO logging commands in Write-CIStepSummary - wrap pipeline results in @() to prevent .Count crash under StrictMode - fix workflow splatting to use array args for switch parameters - reformat markdown tables in workflows/README.md 🔧 - Generated by Copilot
1 parent b75ccaa commit 467e071

4 files changed

Lines changed: 603 additions & 12 deletions

File tree

.github/workflows/ps-script-analyzer.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,14 @@ jobs:
4343
- name: Run PSScriptAnalyzer
4444
shell: pwsh
4545
run: |
46-
$params = @{}
47-
46+
$args = @()
4847
if ('${{ inputs.changed-files-only }}' -eq 'true') {
49-
$params['ChangedFilesOnly'] = $true
48+
$args += '-ChangedFilesOnly'
5049
}
5150
if ('${{ inputs.soft-fail }}' -eq 'true') {
52-
$params['SoftFail'] = $true
51+
$args += '-SoftFail'
5352
}
54-
55-
& scripts/linting/Invoke-PSScriptAnalyzer.ps1 @params
53+
& scripts/linting/Invoke-PSScriptAnalyzer.ps1 @args
5654
5755
- name: Upload PSScriptAnalyzer results
5856
if: always()

0 commit comments

Comments
 (0)