From 1815829b3bc2aa0626d6c1cb7eec64b3dd2f6294 Mon Sep 17 00:00:00 2001 From: Xiaogang Date: Tue, 2 Jun 2020 13:00:17 +0800 Subject: [PATCH] Use Az.Accounts in the artifacts for module testing in pipeline (#12034) --- .azure-pipelines/util/test-steps.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.azure-pipelines/util/test-steps.yml b/.azure-pipelines/util/test-steps.yml index 35f1ab6f6264..e2e004c56e6d 100644 --- a/.azure-pipelines/util/test-steps.yml +++ b/.azure-pipelines/util/test-steps.yml @@ -19,6 +19,7 @@ steps: - powershell: | Install-Module -Name Pester -RequiredVersion 4.10.1 -Force -SkipPublisherCheck Install-Module -Name Az.Accounts -Scope CurrentUser -Force + $env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}} workingDirectory: 'artifacts/Debug' displayName: Test for AutoGen Modules With Windows PowerShell @@ -27,6 +28,7 @@ steps: - pwsh: | Install-Module -Name Pester -RequiredVersion 4.10.1 -Force Install-Module -Name Az.Accounts -Scope CurrentUser -Force + $env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}} workingDirectory: 'artifacts/Debug' displayName: 'Test for AutoGen Modules With PowerShell Core'