diff --git a/.github/workflows/vertexai.yml b/.github/workflows/vertexai.yml index 2b08ca897df..79d634cfc1f 100644 --- a/.github/workflows/vertexai.yml +++ b/.github/workflows/vertexai.yml @@ -92,6 +92,7 @@ jobs: command: scripts/build.sh FirebaseVertexAIUnit ${{ matrix.target }} spm testapp-integration: + # Run tests strategy: matrix: target: [iOS] diff --git a/scripts/build.sh b/scripts/build.sh index 9ad85b209a1..eaddabf8c20 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -113,9 +113,14 @@ function RunXcodebuild() { xcbeautify_cmd=(xcbeautify --renderer github-actions --disable-logging) result=0 - xcodebuild "$@" | tee xcodebuild.log | "${xcbeautify_cmd[@]}" \ + xcodebuild "$@" 2>&1 | tee xcodebuild.log 2>&1 | "${xcbeautify_cmd[@]}" \ && CheckUnexpectedFailures xcodebuild.log \ || result=$? + if [ "$GITHUB_ACTIONS" = true ]; then + echo "::group::xcodebuild log" + cat xcodebuild.log + echo "::endgroup::" + fi if [[ $result == 65 ]]; then ExportLogs "$@" @@ -124,9 +129,14 @@ function RunXcodebuild() { sleep 5 result=0 - xcodebuild "$@" | tee xcodebuild.log | "${xcbeautify_cmd[@]}" \ + xcodebuild "$@" 2>&1 | tee xcodebuild.log 2>&1 | "${xcbeautify_cmd[@]}" \ && CheckUnexpectedFailures xcodebuild.log \ || result=$? + if [ "$GITHUB_ACTIONS" = true ]; then + echo "::group::xcodebuild log" + cat xcodebuild.log + echo "::endgroup::" + fi fi if [[ $result != 0 ]]; then