mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 03:57:32 +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
@@ -5,15 +5,12 @@
|
||||
## Must be run as non-root user after homebrew
|
||||
################################################################################
|
||||
|
||||
source $HELPER_SCRIPTS/invoke-tests.sh
|
||||
|
||||
# Install GitHub CLI
|
||||
url=$(curl -s https://api.github.com/repos/cli/cli/releases/latest | jq -r '.assets[].browser_download_url|select(contains("linux") and contains("amd64") and contains(".deb"))')
|
||||
wget $url
|
||||
apt install ./gh_*_linux_amd64.deb
|
||||
rm gh_*_linux_amd64.deb
|
||||
|
||||
# Run tests to determine that the software installed as expected
|
||||
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||
if ! gh --version; then
|
||||
echo "GitHub CLI was not installed"
|
||||
exit 1
|
||||
fi
|
||||
invoke_tests "CLI.Tools" "GitHub CLI"
|
||||
|
||||
Reference in New Issue
Block a user