mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
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:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user