clean up documentation and exit code
parent
2011208d88
commit
99e23337e3
|
@ -5,14 +5,14 @@ inputs:
|
||||||
unityVersion:
|
unityVersion:
|
||||||
required: false
|
required: false
|
||||||
default: 'auto'
|
default: 'auto'
|
||||||
description: 'Version of unity to use for testing the project. Use "auto" to get from your ProjectSettings/ProjectVersion.txt. Required if using Package Mode.'
|
description: 'Version of unity to use for testing the project. Use "auto" to get from your ProjectSettings/ProjectVersion.txt. ⚠️ If testing a Unity Package, this field is required and cannot be set to "auto".'
|
||||||
customImage:
|
customImage:
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
description: 'Specific docker image that should be used for testing the project'
|
description: 'Specific docker image that should be used for testing the project'
|
||||||
projectPath:
|
projectPath:
|
||||||
required: false
|
required: false
|
||||||
description: 'Path to the Unity project (or, in package mode, the path to the package directory) to be tested.'
|
description: 'Path to the Unity project or package to be tested.'
|
||||||
customParameters:
|
customParameters:
|
||||||
required: false
|
required: false
|
||||||
description: 'Extra parameters to configure the Unity editor run.'
|
description: 'Extra parameters to configure the Unity editor run.'
|
||||||
|
@ -47,7 +47,7 @@ inputs:
|
||||||
packageMode:
|
packageMode:
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
description: 'Whether the tests are being run for a Unity package instead of a Unity project. NOTE: If this is true, any custom docker image you pass must be compatible with apt-get.'
|
description: 'Whether the tests are being run for a Unity package instead of a Unity project. If true, any custom docker image passed to this action must be compatible with apt-get.'
|
||||||
outputs:
|
outputs:
|
||||||
artifactsPath:
|
artifactsPath:
|
||||||
description: 'Path where the artifacts are stored'
|
description: 'Path where the artifacts are stored'
|
||||||
|
|
|
@ -8,14 +8,14 @@ ACTIVATE_LICENSE_PATH="$GITHUB_WORKSPACE/_activate-license"
|
||||||
mkdir -p "$ACTIVATE_LICENSE_PATH"
|
mkdir -p "$ACTIVATE_LICENSE_PATH"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check if apt-get is available if in package mode (if not, we must abort since we need to install jq)
|
# Check if apt-get is available if in package mode (if not, we must exit since we need to install jq)
|
||||||
#
|
#
|
||||||
if [ "$PACKAGE_MODE" = "true" ]; then
|
if [ "$PACKAGE_MODE" = "true" ]; then
|
||||||
echo "Checking if apt-get is installed to install jq."
|
echo "Checking if apt-get is installed to install jq."
|
||||||
apt-get --version > /dev/null 2>&1
|
apt-get --version > /dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "apt-get is not installed. Aborting..."
|
echo "apt-get is not installed. Exiting..."
|
||||||
exit
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install jq
|
# install jq
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue