From 1218316b51088b6cf6f5b4f5a79c87125d628336 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Thu, 6 Mar 2025 12:26:47 -0500 Subject: [PATCH] Remove unnecessary steps in CI Testing for vertex Additionally, make the update_responses.sh more verbose to ease debugging --- .github/workflows/ci_tests.yml | 11 +---------- firebase-vertexai/update_responses.sh | 2 ++ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index c706aa614bd..603719e8142 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -56,18 +56,9 @@ jobs: distribution: temurin cache: gradle - - name: Pull genai-common - if: matrix.module == ':firebase-vertexai' - run: | - git clone https://github.com/google-gemini/generative-ai-android.git - cd generative-ai-android - ./gradlew :common:updateVersion common:publishToMavenLocal - cd .. - - name: Clone mock responses if: matrix.module == ':firebase-vertexai' - run: | - firebase-vertexai/update_responses.sh + run: firebase-vertexai/update_responses.sh - name: Add google-services.json env: diff --git a/firebase-vertexai/update_responses.sh b/firebase-vertexai/update_responses.sh index 70e438090bd..3feec3b861b 100755 --- a/firebase-vertexai/update_responses.sh +++ b/firebase-vertexai/update_responses.sh @@ -21,6 +21,8 @@ RESPONSES_VERSION='v6.*' # The major version of mock responses to use REPO_NAME="vertexai-sdk-test-data" REPO_LINK="https://github.com/FirebaseExtended/$REPO_NAME.git" +set -x + cd "$(dirname "$0")/src/test/resources" || exit rm -rf "$REPO_NAME" git clone "$REPO_LINK" --quiet || exit