Add nodejs tool cache for linux. (#839)

* add nodejs

* 4 node versions

Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
This commit is contained in:
Dmitry Shibanov
2020-05-09 04:31:49 +00:00
committed by GitHub
parent 68fdb181e5
commit 9b1143dddd
6 changed files with 42 additions and 14 deletions

View File

@@ -52,4 +52,5 @@ foreach ($tool in $tools) {
}
}
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/Python
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/Python
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/node

View File

@@ -26,7 +26,10 @@ function Run-ExecutableTests {
$ErrorActionPreference = "Stop"
# Define executables for cached tools
$toolsExecutables = @{ Python = @("python", "bin/pip") }
$toolsExecutables = @{
Python = @("python", "bin/pip");
node = @("bin/node", "bin/npm")
}
# Get toolset content
$toolsetJson = Get-Content -Path "$env:INSTALLER_SCRIPT_FOLDER/toolset.json" -Raw