From 1a9d37433e7dfa84bce08e2c0e6526049f4c0f4f Mon Sep 17 00:00:00 2001 From: Aaron Trudeau <36064197+trudeaua21@users.noreply.github.com> Date: Thu, 21 Oct 2021 00:53:09 -0400 Subject: [PATCH] Create temporary Unity Project and run tests --- action/steps/run_tests.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/action/steps/run_tests.sh b/action/steps/run_tests.sh index a21f3fe..91a64a0 100644 --- a/action/steps/run_tests.sh +++ b/action/steps/run_tests.sh @@ -20,7 +20,7 @@ if [ "$PACKAGE_MODE" = "true" ]; then echo "###########################" echo "" - cat "$UNITY_PROJECT_PATH" + ls "$UNITY_PROJECT_PATH" PACKAGE_JSON_PATH="$UNITY_PROJECT_PATH/package.json" if [ ! -f "$PACKAGE_JSON_PATH" ]; then @@ -37,14 +37,16 @@ if [ "$PACKAGE_MODE" = "true" ]; then echo "Package name found: ${PACKAGE_NAME}" -# echo "Creating an empty Unity project to add the package to." + echo "Creating an empty Unity project to add the package to." -# unity-editor \ -# -batchMode \ -# -createProject "./TempProject" \ -# -quit + mkdir "TempProject" -# UNITY_PROJECT_PATH="./TempProject" + unity-editor \ + -batchMode \ + -createProject "./TempProject" \ + -quit + + UNITY_PROJECT_PATH="./TempProject" fi #