From dbb5a4cdbdbd0af83a7d270722140dbdbdd58720 Mon Sep 17 00:00:00 2001 From: Aaron Trudeau <36064197+trudeaua21@users.noreply.github.com> Date: Thu, 30 Jun 2022 14:46:31 -0400 Subject: [PATCH] move package mode check lower in the file --- dist/steps/run_tests.sh | 57 +++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/dist/steps/run_tests.sh b/dist/steps/run_tests.sh index 3eae97b..97c2b6f 100755 --- a/dist/steps/run_tests.sh +++ b/dist/steps/run_tests.sh @@ -7,6 +7,35 @@ UNITY_PROJECT_PATH="$GITHUB_WORKSPACE/$PROJECT_PATH" echo "Using project path \"$UNITY_PROJECT_PATH\"." +# +# Set and display the artifacts path +# + +echo "Using artifacts path \"$ARTIFACTS_PATH\" to save test results." +FULL_ARTIFACTS_PATH=$GITHUB_WORKSPACE/$ARTIFACTS_PATH + +# +# Set and display the coverage results path +# + +echo "Using coverage results path \"$COVERAGE_RESULTS_PATH\" to save test coverage results." +FULL_COVERAGE_RESULTS_PATH=$GITHUB_WORKSPACE/$COVERAGE_RESULTS_PATH + +# +# Display custom parameters +# + +echo "Using custom parameters $CUSTOM_PARAMETERS." + +# The following tests are 2019 mode (requires Unity 2019.2.11f1 or later) +# Reference: https://docs.unity3d.com/2019.3/Documentation/Manual/CommandLineArguments.html + +# +# Display the unity version +# + +echo "Using Unity version \"$UNITY_VERSION\" to test." + # # Create an empty project for testing if in package mode # @@ -70,34 +99,6 @@ if [ "$PACKAGE_MODE" = "true" ]; then UNITY_PROJECT_PATH="$TEMP_PROJECT_PATH" fi -# -# Set and display the artifacts path -# - -echo "Using artifacts path \"$ARTIFACTS_PATH\" to save test results." -FULL_ARTIFACTS_PATH=$GITHUB_WORKSPACE/$ARTIFACTS_PATH - -# -# Set and display the coverage results path -# - -echo "Using coverage results path \"$COVERAGE_RESULTS_PATH\" to save test coverage results." -FULL_COVERAGE_RESULTS_PATH=$GITHUB_WORKSPACE/$COVERAGE_RESULTS_PATH - -# -# Display custom parameters -# - -echo "Using custom parameters $CUSTOM_PARAMETERS." - -# The following tests are 2019 mode (requires Unity 2019.2.11f1 or later) -# Reference: https://docs.unity3d.com/2019.3/Documentation/Manual/CommandLineArguments.html - -# -# Display the unity version -# - -echo "Using Unity version \"$UNITY_VERSION\" to test." # # Overall info