mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00: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
@@ -10,7 +10,7 @@ source $HELPER_SCRIPTS/document.sh
|
|||||||
# Install LTS Node.js and related build tools
|
# Install LTS Node.js and related build tools
|
||||||
curl -sL https://raw.githubusercontent.com/mklement0/n-install/stable/bin/n-install | bash -s -- -ny -
|
curl -sL https://raw.githubusercontent.com/mklement0/n-install/stable/bin/n-install | bash -s -- -ny -
|
||||||
~/n/bin/n lts
|
~/n/bin/n lts
|
||||||
npm install -g grunt gulp n parcel-bundler typescript
|
npm install -g grunt gulp n parcel-bundler typescript newman
|
||||||
npm install -g --save-dev webpack webpack-cli
|
npm install -g --save-dev webpack webpack-cli
|
||||||
npm install -g npm
|
npm install -g npm
|
||||||
rm -rf ~/n
|
rm -rf ~/n
|
||||||
@@ -25,7 +25,7 @@ apt-get install -y --no-install-recommends yarn
|
|||||||
|
|
||||||
# Run tests to determine that the software installed as expected
|
# Run tests to determine that the software installed as expected
|
||||||
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||||
for cmd in node grunt gulp webpack parcel yarn; do
|
for cmd in node grunt gulp webpack parcel yarn newman; do
|
||||||
if ! command -v $cmd; then
|
if ! command -v $cmd; then
|
||||||
echo "$cmd was not installed"
|
echo "$cmd was not installed"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -43,3 +43,4 @@ DocumentInstalledItem "TypeScript ($(tsc --version))"
|
|||||||
DocumentInstalledItem "Webpack ($(webpack --version))"
|
DocumentInstalledItem "Webpack ($(webpack --version))"
|
||||||
DocumentInstalledItem "Webpack CLI ($(webpack-cli --version))"
|
DocumentInstalledItem "Webpack CLI ($(webpack-cli --version))"
|
||||||
DocumentInstalledItem "Yarn ($(yarn --version))"
|
DocumentInstalledItem "Yarn ($(yarn --version))"
|
||||||
|
DocumentInstalledItem "Newman ($(newman --version))"
|
||||||
|
|||||||
@@ -33,3 +33,4 @@ npm install -g --save-dev webpack webpack-cli
|
|||||||
npm install -g yarn
|
npm install -g yarn
|
||||||
npm install -g lerna
|
npm install -g lerna
|
||||||
npm install -g node-sass
|
npm install -g node-sass
|
||||||
|
npm install -g newman
|
||||||
|
|||||||
@@ -35,3 +35,13 @@ else
|
|||||||
Write-Host "lerna is not on path"
|
Write-Host "lerna is not on path"
|
||||||
exit 1
|
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-MySQLVersion),
|
||||||
(Get-MercurialVersion),
|
(Get-MercurialVersion),
|
||||||
(Get-NSISVersion),
|
(Get-NSISVersion),
|
||||||
|
(Get-NewmanVersion),
|
||||||
(Get-OpenSSLVersion),
|
(Get-OpenSSLVersion),
|
||||||
(Get-PackerVersion),
|
(Get-PackerVersion),
|
||||||
(Get-SQLPSVersion),
|
(Get-SQLPSVersion),
|
||||||
|
|||||||
@@ -206,4 +206,8 @@ function Get-StackVersion {
|
|||||||
|
|
||||||
function Get-GoogleCloudSDKVersion {
|
function Get-GoogleCloudSDKVersion {
|
||||||
(gcloud --version) -match "Google Cloud SDK"
|
(gcloud --version) -match "Google Cloud SDK"
|
||||||
|
}
|
||||||
|
|
||||||
|
function Get-NewmanVersion {
|
||||||
|
return "Newman $(newman --version)"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user