mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-28 20:19:07 +08:00
Another attempt at getting tests running, using license
This commit is contained in:
@@ -8,18 +8,18 @@ set -x
|
|||||||
|
|
||||||
echo "Testing for $TEST_PLATFORM"
|
echo "Testing for $TEST_PLATFORM"
|
||||||
|
|
||||||
${UNITY_EXECUTABLE:-xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' /opt/Unity/Editor/Unity} \
|
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
|
||||||
-batchmode \
|
/opt/Unity/Editor/Unity \
|
||||||
-nographics \
|
-batchmode \
|
||||||
-logFile /dev/stdout \
|
-nographics \
|
||||||
-batchmode \
|
-logFile /dev/stdout \
|
||||||
-nographics \
|
-quit \
|
||||||
-verbose \
|
-username "$UNITY_EMAIL" \
|
||||||
-quit \
|
-password "$UNITY_PASSWORD" \
|
||||||
-projectPath $GITHUB_WORKSPACE \
|
-projectPath "$GITHUB_WORKSPACE" \
|
||||||
-runTests \
|
-testPlatform $TEST_PLATFORM \
|
||||||
-testPlatform $TEST_PLATFORM \
|
-testResults "$GITHUB_WORKSPACE/$TEST_PLATFORM-results.xml" \
|
||||||
-testResults $GITHUB_WORKSPACE/$TEST_PLATFORM-results.xml
|
-runTests
|
||||||
|
|
||||||
UNITY_EXIT_CODE=$?
|
UNITY_EXIT_CODE=$?
|
||||||
|
|
||||||
@@ -33,5 +33,7 @@ else
|
|||||||
echo "Unexpected exit code $UNITY_EXIT_CODE";
|
echo "Unexpected exit code $UNITY_EXIT_CODE";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat $(pwd)/$TEST_PLATFORM-results.xml | grep test-run | grep Passed
|
echo "Results: "
|
||||||
|
cat $GITHUB_WORKSPACE/$TEST_PLATFORM-results.xml
|
||||||
|
cat $GITHUB_WORKSPACE/$TEST_PLATFORM-results.xml | grep test-run | grep Passed
|
||||||
exit $UNITY_TEST_EXIT_CODE
|
exit $UNITY_TEST_EXIT_CODE
|
||||||
|
|||||||
Reference in New Issue
Block a user