Move helpers to submodule (#19)

* add common helpers

* minor changes

* remove from git helpers

* add submodules

* setup 4 version for pester

Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
This commit is contained in:
Dmitry Shibanov
2020-06-02 18:21:42 +03:00
committed by GitHub
parent 7c335a2ccc
commit 434ca92b37
15 changed files with 17 additions and 805 deletions

View File

@@ -10,12 +10,9 @@ jobs:
- task: PowerShell@2
displayName: Fully cleanup the toolcache directory before testing
inputs:
TargetType: inline
script: |
$NodeToolcachePath = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath "node"
if (Test-Path $NodeToolcachePath) {
Remove-Item -Path $NodeToolcachePath -Recurse -Force
}
targetType: filePath
filePath: helpers/clean-toolcache.ps1
arguments: -ToolName "node"
- task: DownloadPipelineArtifact@2
inputs:
@@ -56,7 +53,7 @@ jobs:
inputs:
TargetType: inline
script: |
Install-Module Pester -Force -Scope CurrentUser
Install-Module Pester -Force -Scope CurrentUser -RequiredVersion 4.10.1
Import-Module Pester
$pesterParams = @{
Path="./Node.Tests.ps1";