Skip to content
Open
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: 1 addition & 1 deletion requirements.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SkipPublisherCheck = $true
}
}
psake = '4.9.0'
psake = '5.0.4'
PSScriptAnalyzer = '1.25.0'
InvokeBuild = '5.14.23'
platyPS = '0.14.2'
Expand Down
7 changes: 6 additions & 1 deletion tests/Manifest.tests.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
BeforeAll {
Set-BuildEnvironment -Force
# Only call Set-BuildEnvironment when the build variables are not already present.
# build.ps1 sets them before Invoke-psake, so inside a build this is a no-op; standalone
# Pester runs still get them. Calling it unconditionally lets an escaping 'break' from
# BuildHelpers' Get-BuildVariable switch blocks unwind out of this BeforeAll, which
# psake 4.9.x absorbs but psake 5.x does not -- Pester then fails the whole container.
Comment thread
tablackburn marked this conversation as resolved.
if (-not $env:BHProjectName) { Set-BuildEnvironment -Force }
$moduleName = $env:BHProjectName
$manifest = Import-PowerShellDataFile -Path $env:BHPSModuleManifest

Check warning on line 9 in tests/Manifest.tests.ps1

View workflow job for this annotation

GitHub Actions / CI / Run Linters

Unknown word (BHPS) Suggestions: (baps, bops, bhp, BHP, bps)
$outputDir = Join-Path -Path $ENV:BHProjectPath -ChildPath 'Output'
$outputModDir = Join-Path -Path $outputDir -ChildPath $env:BHProjectName
$outputModVerDir = Join-Path -Path $outputModDir -ChildPath $manifest.ModuleVersion
Expand Down Expand Up @@ -70,7 +75,7 @@
$gitTagVersion = $null

if ($git = Get-Command git -CommandType Application -ErrorAction SilentlyContinue) {
$thisCommit = & $git log --decorate --oneline HEAD~1..HEAD

Check warning on line 78 in tests/Manifest.tests.ps1

View workflow job for this annotation

GitHub Actions / CI / Run Linters

Unknown word (oneline) Suggestions: (online, onegin, obelize, offline, onetime)
if ($thisCommit -match 'tag:\s*(\d+(?:\.\d+)*)') { $gitTagVersion = $matches[1] }
}
}
Expand Down
Loading