mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Ubuntu] Migrate tests for CLI tools to Pester (#2289)
* add tests for cli tools to pester * small fix * remove extra commenting * resolve issues * fix vercel test * remove extra logging
This commit is contained in:
committed by
GitHub
parent
7e4e97b9d9
commit
90ecf07404
@@ -4,21 +4,12 @@
|
||||
## Desc: Installs the Vercel CLI
|
||||
################################################################################
|
||||
|
||||
source $HELPER_SCRIPTS/invoke-tests.sh
|
||||
|
||||
# Install the Vercel CLI
|
||||
npm i -g vercel
|
||||
|
||||
# Validate the installation
|
||||
echo "Validate the installation"
|
||||
if ! command -v vercel; then
|
||||
echo "Vercel CLI was not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Creating the symlink for [now] command to vercel CLI"
|
||||
ln -s /usr/local/bin/vercel /usr/local/bin/now
|
||||
|
||||
echo "Validate the link"
|
||||
if ! command -v now; then
|
||||
echo "[Now] symlink to Vercel CLI was not created"
|
||||
exit 1
|
||||
fi
|
||||
invoke_tests "CLI.Tools" "Vercel CLI"
|
||||
Reference in New Issue
Block a user