mirror of
https://github.com/actions/runner-images.git
synced 2025-12-31 22:43:22 +08:00
[macOS] Move global npm packages to toolset macOS (#4047)
This commit is contained in:
@@ -51,14 +51,12 @@ Describe "nvm" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "AppCenterCLI" {
|
||||
It "App Center CLI" {
|
||||
"appcenter --version" | Should -ReturnZeroExitCode
|
||||
Describe "Global NPM Packages" {
|
||||
$globalNpmPackages = Get-ToolsetValue "npm.global_packages"
|
||||
$globalNpmPackagesWithTests = $globalNpmPackages | Where-Object { $_.test } | ForEach-Object { @{ Name = $_.name; Test = $_.test } }
|
||||
|
||||
It "<Name>" -TestCases $globalNpmPackagesWithTests {
|
||||
$Test | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Newman" -Skip:($os.IsHighSierra -or $os.IsMojave) {
|
||||
It "Newman" {
|
||||
"newman --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user