From 30bce6f5ec54c0c416b5c745140b61ddaa2ad661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Vall=C3=A9s?= <3977183+jvallesm@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:42:34 +0100 Subject: [PATCH] fix(component): add dummy OAuth information for pipeline-backend tests (#1145) Because - Latest `pipeline-backend` tests OAuth connection creation using some environment variables ([ref](https://github.com/instill-ai/pipeline-backend/blob/main/.github/workflows/integration-test.yml#L80)) This commit - Adds such variables to the build on the CI. --- .github/workflows/integration-test-backend.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/integration-test-backend.yml b/.github/workflows/integration-test-backend.yml index 3ec1a290..58c2744f 100644 --- a/.github/workflows/integration-test-backend.yml +++ b/.github/workflows/integration-test-backend.yml @@ -51,7 +51,10 @@ jobs: xk6 build v${{ env.K6_VERSION }} --with github.com/grafana/xk6-sql && sudo cp k6 /usr/bin - name: Launch Instill Core (${{ inputs.target }}) + # CFG_COMPONENT_SECRETS_GITHUB* variables are injected to test OAuth + # connection creation on `pipeline-backend`. run: | + sed -i 's/\(\w\+GITHUB\w\+\)=/\1=foo/' .env.component if [ "${{ inputs.target }}" == "latest" ]; then make latest BUILD_CORE_DEV_IMAGE=true EDITION=local-ce:test else