mirror of
https://github.com/actions/runner-images.git
synced 2026-01-04 09:13:33 +08:00
[Ubuntu] Implement new directories hierarchy (#8627)
This commit is contained in:
committed by
GitHub
parent
d1f2c9a3be
commit
5d40b1e213
18
images/ubuntu/scripts/tests/Node.Tests.ps1
Normal file
18
images/ubuntu/scripts/tests/Node.Tests.ps1
Normal file
@@ -0,0 +1,18 @@
|
||||
Describe "Node.js" {
|
||||
$binaries = @("node")
|
||||
$module_commands = (Get-ToolsetContent).node_modules | ForEach-Object { $_.command }
|
||||
$testCases = $binaries + $module_commands | ForEach-Object { @{NodeCommand = $_} }
|
||||
|
||||
It "<NodeCommand>" -TestCases $testCases {
|
||||
param (
|
||||
[string] $NodeCommand
|
||||
)
|
||||
|
||||
"$NodeCommand --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Node.js version should correspond to the version in the toolset" {
|
||||
node --version | Should -BeLike "v$((Get-ToolsetContent).node.default).*"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user