mirror of
https://github.com/actions/node-versions.git
synced 2025-01-25 15:42:36 +00:00
Update Node.Tests.ps1
This commit is contained in:
parent
5b20cd9fc1
commit
57bef4861a
@ -36,10 +36,10 @@ Describe "Node.js" {
|
|||||||
|
|
||||||
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
|
||||||
$isWindows = if ($IsWindows) {$true} else {$false}
|
|
||||||
$isArm64Linux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux')) {$true} else {$false}
|
$isArm64Linux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux')) {$true} else {$false}
|
||||||
|
|
||||||
if (!$isWindows -and !$isArm64Linux) {
|
if (!$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
|
||||||
|
Loading…
Reference in New Issue
Block a user