mirror of
https://github.com/actions/runner-images.git
synced 2025-12-30 22:07:58 +08:00
Add Newman tool (#1185)
* Add Newman * Move installation to NodeLts script on Windows
This commit is contained in:
committed by
GitHub
parent
8226c37bf4
commit
9ed8bbbc63
@@ -33,3 +33,4 @@ npm install -g --save-dev webpack webpack-cli
|
||||
npm install -g yarn
|
||||
npm install -g lerna
|
||||
npm install -g node-sass
|
||||
npm install -g newman
|
||||
|
||||
@@ -35,3 +35,13 @@ else
|
||||
Write-Host "lerna is not on path"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if (Get-Command -Name 'newman')
|
||||
{
|
||||
Write-Host "Newman $(newman --version) is on the path."
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Newman is not on the path."
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -78,6 +78,7 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-MySQLVersion),
|
||||
(Get-MercurialVersion),
|
||||
(Get-NSISVersion),
|
||||
(Get-NewmanVersion),
|
||||
(Get-OpenSSLVersion),
|
||||
(Get-PackerVersion),
|
||||
(Get-SQLPSVersion),
|
||||
|
||||
@@ -206,4 +206,8 @@ function Get-StackVersion {
|
||||
|
||||
function Get-GoogleCloudSDKVersion {
|
||||
(gcloud --version) -match "Google Cloud SDK"
|
||||
}
|
||||
|
||||
function Get-NewmanVersion {
|
||||
return "Newman $(newman --version)"
|
||||
}
|
||||
Reference in New Issue
Block a user