mirror of
https://github.com/actions/node-versions.git
synced 2025-04-19 10:13:29 +00:00
Update Node.Tests.ps1
This commit is contained in:
parent
47252c228f
commit
921e8d9f35
@ -34,6 +34,11 @@ Describe "Node.js" {
|
||||
$nodePath.startsWith($expectedPath) | Should -BeTrue -Because "'$nodePath' is not started with '$expectedPath'"
|
||||
}
|
||||
|
||||
BeforeAll {
|
||||
Write-Host "Architecture: $($env:PROCESSOR_ARCHITECTURE)"
|
||||
Write-Host "OS: $($env:OS)"
|
||||
}
|
||||
|
||||
It "cached version is used without downloading" {
|
||||
# Check the architecture and OS before running the test
|
||||
if (($env:PROCESSOR_ARCHITECTURE -ne 'ARM64') -or (($env:OS -ne 'Windows_NT') -and ($env:OS -ne 'Linux'))) {
|
||||
|
Loading…
Reference in New Issue
Block a user