diff --git a/.github/workflows/vertexai.yml b/.github/workflows/vertexai.yml index 9ad2ac372d1..7ae78644b38 100644 --- a/.github/workflows/vertexai.yml +++ b/.github/workflows/vertexai.yml @@ -51,6 +51,7 @@ jobs: runs-on: ${{ matrix.os }} env: TEST_RUNNER_VertexAIRunIntegrationTests: 1 + TEST_RUNNER_FIRAAppCheckDebugToken: ${{ secrets.VERTEXAI_INTEGRATION_FAC_DEBUG_TOKEN }} FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1 plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} steps: diff --git a/FirebaseVertexAI/Tests/Integration/IntegrationTests.swift b/FirebaseVertexAI/Tests/Integration/IntegrationTests.swift index ea021f17f6f..6b7da09ec9b 100644 --- a/FirebaseVertexAI/Tests/Integration/IntegrationTests.swift +++ b/FirebaseVertexAI/Tests/Integration/IntegrationTests.swift @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +import FirebaseAppCheck import FirebaseCore import FirebaseVertexAI import XCTest @@ -30,6 +31,8 @@ final class IntegrationTests: XCTestCase { environment variable in Xcode or CI jobs. """) + AppCheck.setAppCheckProviderFactory(AppCheckDebugProviderFactory()) + let plistPath = try XCTUnwrap(Bundle.module.path( forResource: "GoogleService-Info", ofType: "plist" diff --git a/Package.swift b/Package.swift index 4b35c42a5a0..9042100b962 100644 --- a/Package.swift +++ b/Package.swift @@ -1387,7 +1387,10 @@ let package = Package( ), .testTarget( name: "FirebaseVertexAIIntegration", - dependencies: ["FirebaseVertexAI"], + dependencies: [ + "FirebaseAppCheck", + "FirebaseVertexAI", + ], path: "FirebaseVertexAI/Tests/Integration", resources: [ .process("Resources"),