From c3610710c383483f047101e27e41c2d70811f2c4 Mon Sep 17 00:00:00 2001 From: Pim Simons Date: Wed, 31 May 2023 09:14:42 +0200 Subject: [PATCH] use pwsh --- build/templates/run-pester-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/templates/run-pester-tests.yml b/build/templates/run-pester-tests.yml index 740ec7cc..bc922b5e 100644 --- a/build/templates/run-pester-tests.yml +++ b/build/templates/run-pester-tests.yml @@ -43,7 +43,7 @@ steps: Install-Module -Name Microsoft.Graph.Applications -Force -SkipPublisherCheck -MaximumVersion 1.15.0 Write-Host "Done installing, start importing modules" displayName: 'Install Pester test framework and Az required modules' - - powershell: | + - pwsh: | Import-Module ./src/Arcus.Scripting.Security Get-ChildItem -Path ./src -Filter *.psm1 -Recurse -Exclude "*Arcus.Scripting.Security*", "*.All.psm1" | % { Write-Host "Import $($_.DirectoryName) module"