Skip to content

Commit

Permalink
Make pester fail pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Jan 3, 2024
1 parent 16b7c36 commit b1e0b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
$ErrorActionPreference = "Stop"
& .\PwshSpectreConsole\Build.ps1
$env:PSModulePath = @($env:PSModulePath, ".\PwshSpectreConsole\") -join ":"
Invoke-Pester
Invoke-Pester -CI
$version = Get-Module PwshSpectreConsole -ListAvailable | Sort-Object -Property Version -Descending | Select-Object -First 1 -ExpandProperty Version
if($null -eq $version) { throw "Failed to load version" }
$newVersion = [version]::new($version.Major, $version.Minor + 1, 0)
Expand All @@ -51,7 +51,7 @@ jobs:
$ErrorActionPreference = "Stop"
& ./PwshSpectreConsole/Build.ps1
$env:PSModulePath = @($env:PSModulePath, ".\PwshSpectreConsole\") -join ":"
Invoke-Pester
Invoke-Pester -CI
$version = Get-Module PwshSpectreConsole -ListAvailable | Sort-Object -Property Version -Descending | Select-Object -First 1 -ExpandProperty Version
if($null -eq $version) { throw "Failed to load version" }
$newVersion = [version]::new($version.Major, $version.Minor, $version.Build + 1)
Expand Down

0 comments on commit b1e0b4e

Please sign in to comment.