Skip to content

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Jan 20, 2026

deploy workflow is failing after release creation

@@ -0,0 +1,27 @@
Write-Information -Message ("Loading {0} ..." -f ($PSCommandPath | Split-Path -LeafBase)) -InformationAction continue

Check warning

Code scanning / PSScriptAnalyzer

Cmdlet 'Write-Information' may be used incorrectly. Please check that all mandatory parameters are supplied. Warning

Cmdlet 'Write-Information' may be used incorrectly. Please check that all mandatory parameters are supplied.
VariablesToExport = '*'

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = '*'

Check warning

Code scanning / PSScriptAnalyzer

Do not use wildcard or $null in this field. Explicitly specify a list for AliasesToExport. Warning

Do not use wildcard or $null in this field. Explicitly specify a list for AliasesToExport.
FunctionsToExport = '*'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = '*'

Check warning

Code scanning / PSScriptAnalyzer

Do not use wildcard or $null in this field. Explicitly specify a list for CmdletsToExport. Warning

Do not use wildcard or $null in this field. Explicitly specify a list for CmdletsToExport.
@@ -0,0 +1,37 @@
function Set-TestName{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Set-TestName' does not have a help comment. Note test

The cmdlet 'Set-TestName' does not have a help comment.
}
} Export-ModuleMember -Function Set-TestName -Alias st

function Get-TestName{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Get-TestName' does not have a help comment. Note test

The cmdlet 'Get-TestName' does not have a help comment.
}
} Export-ModuleMember -Function Get-TestName -Alias gt

function Clear-TestName{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Clear-TestName' does not have a help comment. Note test

The cmdlet 'Clear-TestName' does not have a help comment.
$manifest = $Path | Join-Path -child "*.psd1" | Get-Item | Import-PowerShellDataFile
$requiredModule = $null -eq $manifest.RequiredModules ? @() : $manifest.RequiredModules

"Found RequiredModules: $($requiredModule.Count)" | Write-Host -ForegroundColor DarkGray

Check warning

Code scanning / PSScriptAnalyzer

File 'Get-RequiredModule.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning

File 'Get-RequiredModule.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.

# Convert to hashtable
$requiredModule | ForEach-Object{
"Processing RequiredModule: $($_| convertto-json -Depth 5)" | Write-Host -ForegroundColor DarkGray

Check warning

Code scanning / PSScriptAnalyzer

File 'Get-RequiredModule.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning

File 'Get-RequiredModule.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
. SYNOPSIS
Extracts the required modules from the module manifest
#>
function Get-RequiredModule{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Get-RequiredModule' does not have a help comment. Note

The cmdlet 'Get-RequiredModule' does not have a help comment.
)

process{
# Powershell module manifest does not allow versions with prerelease tags on them.

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@@ -0,0 +1,28 @@
function Test-Result{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Test-Result' does not have a help comment. Note test

The cmdlet 'Test-Result' does not have a help comment.
process{
# Chek results from last run
$Result = $Result ?? $Global:ResultTestingHelper

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note test

Line has trailing whitespace
if($SkippedNotAllowed -and $Result.Skipped -gt 0){
return $false
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note test

Line has trailing whitespace
if($NotImplementedNotAllowed -and $Result.NotImplemented -gt 0){
return $false
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note test

Line has trailing whitespace

# Allow Not Implemented and Skipped tests to pass
$passed = $Result.Tests -eq $Result.Pass + $Result.NotImplemented + $Result.Skipped

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note test

Line has trailing whitespace
@rulasg rulasg merged commit 95735fd into main Jan 20, 2026
3 checks passed
@rulasg rulasg deleted the Test-TestingHelperResults branch January 20, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants