From 420df9b9d07c63eacdff1fc84a2797c0dab7875e Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 21 May 2025 00:51:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B2=20[Fix]:=20Add=20installation=20of?= =?UTF-8?q?=20PSCustomObject=20from=20PSGallery=20to=20speed=20up=20module?= =?UTF-8?q?=20loading=20in=20Pester?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Test-ModuleLocal.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/Test-ModuleLocal.yml b/.github/workflows/Test-ModuleLocal.yml index 9f16e948..b7b9654b 100644 --- a/.github/workflows/Test-ModuleLocal.yml +++ b/.github/workflows/Test-ModuleLocal.yml @@ -131,4 +131,5 @@ jobs: Run_Path: ${{ steps.import-module.outputs.path }} WorkingDirectory: ${{ inputs.WorkingDirectory }} Prescript: | # This is to speed up module loading in Pester. + Install-PSResource -Repository PSGallery -TrustRepository -Name PSCustomObject Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion 999.0.0