mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-28 21:59:06 +08:00
fix documentation and add error message for missing jq
This commit is contained in:
@@ -9,7 +9,7 @@ inputs:
|
|||||||
customImage:
|
customImage:
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
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:
|
projectPath:
|
||||||
required: false
|
required: false
|
||||||
description: 'Path to the Unity project or package to be tested.'
|
description: 'Path to the Unity project or package to be tested.'
|
||||||
|
|||||||
7
dist/steps/run_tests.sh
vendored
7
dist/steps/run_tests.sh
vendored
@@ -43,6 +43,13 @@ echo "Using Unity version \"$UNITY_VERSION\" to test."
|
|||||||
if [ "$PACKAGE_MODE" = "true" ]; then
|
if [ "$PACKAGE_MODE" = "true" ]; then
|
||||||
echo "Running tests on a Unity package rather than a Unity project."
|
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 "###########################"
|
echo "###########################"
|
||||||
echo "# Package Folder #"
|
echo "# Package Folder #"
|
||||||
|
|||||||
Reference in New Issue
Block a user