diff --git a/action/steps/run_tests.sh b/action/steps/run_tests.sh index f9e763e..46b1af2 100644 --- a/action/steps/run_tests.sh +++ b/action/steps/run_tests.sh @@ -77,13 +77,16 @@ if [ $EDIT_MODE = true ]; then xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \ /opt/Unity/Editor/Unity \ -batchmode \ - -logfile /dev/stdout \ + -logFile "$FULL_ARTIFACTS_PATH/editmode.log" \ -projectPath "$UNITY_PROJECT_PATH" \ -runTests \ -testPlatform editmode \ -testResults "$FULL_ARTIFACTS_PATH/editmode-results.xml" \ $CUSTOM_PARAMETERS + # Print unity log output + cat "$FULL_ARTIFACTS_PATH/editmode.log" + # Catch exit code EDIT_MODE_EXIT_CODE=$? @@ -112,13 +115,16 @@ if [ $PLAY_MODE = true ]; then xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \ /opt/Unity/Editor/Unity \ -batchmode \ - -logfile /dev/stdout \ + -logFile "$FULL_ARTIFACTS_PATH/playmode.log" \ -projectPath "$UNITY_PROJECT_PATH" \ -runTests \ -testPlatform playmode \ -testResults "$FULL_ARTIFACTS_PATH/playmode-results.xml" \ $CUSTOM_PARAMETERS + # Print unity log output + cat "$FULL_ARTIFACTS_PATH/playmode.log" + # Catch exit code PLAY_MODE_EXIT_CODE=$?