mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-29 06:20:07 +08:00
- Updated activation strategy to align with builder strategy for more stable activation with retry logic - Added `containerRegistryImageVersion` and `containerRegistryRepository` for improved custom image support - Added `runAsHostUser` to fix self-hosted runner issues - Scripts folder cleanup - Added error/warning annotations for activation issues - Improved serial masking - Image environment factory addition and docker refactoring
42 lines
919 B
Bash
Executable File
42 lines
919 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#
|
|
# Run steps
|
|
#
|
|
source /steps/set_extra_git_configs.sh
|
|
source /steps/set_gitcredential.sh
|
|
source /steps/activate.sh
|
|
|
|
# If we didn't activate successfully, exit with the exit code from the activation step.
|
|
if [[ $UNITY_EXIT_CODE -ne 0 ]]; then
|
|
exit $UNITY_EXIT_CODE
|
|
fi
|
|
|
|
source /steps/run_tests.sh
|
|
source /steps/return_license.sh
|
|
|
|
#
|
|
# Instructions for debugging
|
|
#
|
|
|
|
if [[ $TEST_RUNNER_EXIT_CODE -gt 0 ]]; then
|
|
echo ""
|
|
echo "###########################"
|
|
echo "# Failure #"
|
|
echo "###########################"
|
|
echo ""
|
|
echo "Please note that the exit code is not very descriptive."
|
|
echo "Most likely it will not help you solve the issue."
|
|
echo ""
|
|
echo "To find the reason for failure: please search for errors in the log above."
|
|
echo ""
|
|
fi;
|
|
|
|
#
|
|
# Exit with code from the build step.
|
|
#
|
|
|
|
if [[ $USE_EXIT_CODE == true || $TEST_RUNNER_EXIT_CODE -ne 2 ]]; then
|
|
exit $TEST_RUNNER_EXIT_CODE
|
|
fi;
|