mirror of
https://github.com/actions/node-versions.git
synced 2025-01-11 10:35:20 +00:00
Update Node.Tests.ps1
This commit is contained in:
parent
f89b01ffb0
commit
dd8ef7901f
@ -39,11 +39,12 @@ Describe "Node.js" {
|
|||||||
Write-Host "OS: $($env:OS)"
|
Write-Host "OS: $($env:OS)"
|
||||||
}
|
}
|
||||||
|
|
||||||
It "cached version is used without downloading" {
|
It "cached version is used without downloading" {
|
||||||
# Set a custom variable to check for architecture and OS
|
# Set a custom variable to check for architecture and OS
|
||||||
$isArm64WindowsOrLinux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux' -or $IsWindows)) {$true} else {$false}
|
$isArm64Windows = if ($IsWindows -and ([System.Environment]::Is64BitOperatingSystem)) {$true} else {$false}
|
||||||
|
$isArm64Linux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux')) {$true} else {$false}
|
||||||
|
|
||||||
if (!$isArm64WindowsOrLinux) {
|
if (!$isArm64Windows -and !$isArm64Linux) {
|
||||||
# Analyze output of previous steps to check if Node.js was consumed from cache or downloaded
|
# Analyze output of previous steps to check if Node.js was consumed from cache or downloaded
|
||||||
$useNodeLogFile = Get-UseNodeLogs
|
$useNodeLogFile = Get-UseNodeLogs
|
||||||
$useNodeLogFile | Should -Exist
|
$useNodeLogFile | Should -Exist
|
||||||
@ -55,7 +56,6 @@ Describe "Node.js" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
It "Run simple code" {
|
It "Run simple code" {
|
||||||
"node ./simple-test.js" | Should -ReturnZeroExitCode
|
"node ./simple-test.js" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user