From af6e7f5ec622854eea3d34f88f6927a34cd9c1f6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 13 Jun 2024 06:31:34 +0200 Subject: [PATCH] Skip publisher check for pester > The built-in version is signed by Microsoft while newer versions are community-maintained and signed with a different certificate, causing Install-Module to sometimes throw a error requiring us to accept the new publisher certificate. source: https://pester.dev/docs/introduction/installation#windows --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc8dbecbe..5fc423994 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -322,7 +322,7 @@ jobs: run: | $PSVersionTable Set-PSRepository psgallery -InstallationPolicy trusted - Install-Module -Name Pester -RequiredVersion 5.3.1 -Confirm:$false -Force + Install-Module -Name Pester -RequiredVersion 5.3.1 -Confirm:$false -Force -SkipPublisherCheck $Error.clear() Invoke-Pester -Path "tests" -CI if ($Error.Length -gt 0) {exit 1}