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 .github/workflows/Action-Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
Name: PSModule
ModulePath: tests/outputs/modules
DocsPath: tests/outputs/docs
APIKey: ${{ secrets.APIKEY }}
WhatIf: true
56 changes: 0 additions & 56 deletions scripts/helpers/PSScriptAnalyzer.Tests.psd1

This file was deleted.

14 changes: 1 addition & 13 deletions scripts/helpers/Publish-PSModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -306,24 +306,12 @@ function Publish-PSModule {
Write-Verbose "Prerelease is: [$($newVersion.Prerelease)]"
Update-ModuleManifest -Path $manifestFilePath -Prerelease $($newVersion.Prerelease) -Verbose:$false
}

#region Format manifest file
$manifestContent = Get-Content -Path $manifestFilePath
$manifestContent = $manifestContent | ForEach-Object { $_ -replace '#.*' }
$manifestContent = $manifestContent | ForEach-Object { $_.TrimEnd() }
$manifestContent = $manifestContent | Where-Object { $_ | IsNotNullOrEmpty }
$manifestContent | Out-File -FilePath $manifestFilePath -Encoding utf8BOM -Force

$manifestContent = Get-Content -Path $manifestFilePath -Raw
$settings = (Join-Path -Path $PSScriptRoot 'PSScriptAnalyzer.Tests.psd1')
Invoke-Formatter -ScriptDefinition $manifestContent -Settings $settings |
Out-File -FilePath $manifestFilePath -Encoding utf8BOM -Force
Format-ModuleManifest -Path $manifestFilePath
Stop-LogGroup

Start-LogGroup 'Format manifest file - Result'
Show-FileContent -Path $manifestFilePath
Stop-LogGroup
#endregion Format manifest file

#endregion Update module manifest

Expand Down