fix documentation and add error message for missing jq

pull/164/head
Aaron Trudeau 2023-06-07 01:23:53 -04:00
parent 1afbd6b347
commit 0df3ab6b88
No known key found for this signature in database
GPG Key ID: 5EA8D416A3C71A20
2 changed files with 247 additions and 240 deletions

View File

@ -9,7 +9,7 @@ inputs:
customImage:
required: false
default: ''
description: 'Specific docker image that should be used for testing the project. If packageMode is true, this image must be compatible with apt-get.'
description: 'Specific docker image that should be used for testing the project. If packageMode is true, this image must have jq installed.'
projectPath:
required: false
description: 'Path to the Unity project or package to be tested.'

View File

@ -43,6 +43,13 @@ echo "Using Unity version \"$UNITY_VERSION\" to test."
if [ "$PACKAGE_MODE" = "true" ]; then
echo "Running tests on a Unity package rather than a Unity project."
if ! command -v jq &> /dev/null
then
echo "jq could not be found. This is required for package mode, and is likely the result of using a custom Docker image. Please use the default image or install jq to your custom image."
exit
fi
echo ""
echo "###########################"
echo "# Package Folder #"