mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 03:13:23 +00:00
Update Pester invocation with configuration options
This commit is contained in:
6
.github/workflows/build-tool-packages.yml
vendored
6
.github/workflows/build-tool-packages.yml
vendored
@@ -168,7 +168,11 @@ jobs:
|
||||
Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck
|
||||
Import-Module Pester
|
||||
$toolName = (Get-Culture).TextInfo.ToTitleCase("${{ inputs.tool-name }}")
|
||||
Invoke-Pester -Script ./$toolName.Tests.ps1 -EnableExit
|
||||
Invoke-Pester -Configuration @{
|
||||
Run = @{ Path = "./$toolName.Tests.ps1" }
|
||||
Should = @{ ErrorAction = 'Continue' }
|
||||
Output = @{ EnableExit = $true }
|
||||
}
|
||||
working-directory: ./tests
|
||||
|
||||
publish_release:
|
||||
|
||||
Reference in New Issue
Block a user