mirror of
https://github.com/actions/node-versions.git
synced 2025-08-07 07:14:43 +08:00
Update Node.Tests.ps1
This commit is contained in:
parent
8de3d72cb1
commit
f0dfcccfe7
@ -41,7 +41,7 @@ Describe "Node.js" {
|
|||||||
$useNodeLogFile | Should -Exist
|
$useNodeLogFile | Should -Exist
|
||||||
$useNodeLogContent = Get-Content $useNodeLogFile -Raw
|
$useNodeLogContent = Get-Content $useNodeLogFile -Raw
|
||||||
$useNodeLogContent | Should -Match "Found in cache"
|
$useNodeLogContent | Should -Match "Found in cache"
|
||||||
} else {
|
} elseif ($env:RUNNER_TYPE -eq "self-hosted") {
|
||||||
# Get the installed version of Node.js
|
# Get the installed version of Node.js
|
||||||
$nodeVersion = Invoke-Expression "node --version"
|
$nodeVersion = Invoke-Expression "node --version"
|
||||||
# Check if Node.js is installed
|
# Check if Node.js is installed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user