From 8c582122a84fcb9f56fd9790aac0ae031fa8b7fc Mon Sep 17 00:00:00 2001 From: forehalo Date: Fri, 28 Mar 2025 08:42:22 +0000 Subject: [PATCH] chore: fix copilot cron test (#11262) --- .github/workflows/copilot-test.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/copilot-test.yml b/.github/workflows/copilot-test.yml index bae394e36..792ed93d7 100644 --- a/.github/workflows/copilot-test.yml +++ b/.github/workflows/copilot-test.yml @@ -144,14 +144,18 @@ jobs: name: server-native.node path: ./packages/backend/server + - name: Prepare Server Test Environment + env: + COPILOT_OPENAI_API_KEY: ${{ secrets.COPILOT_OPENAI_API_KEY }} + COPILOT_FAL_API_KEY: ${{ secrets.COPILOT_FAL_API_KEY }} + COPILOT_GOOGLE_API_KEY: ${{ secrets.COPILOT_GOOGLE_API_KEY }} + COPILOT_PERPLEXITY_API_KEY: ${{ secrets.COPILOT_PERPLEXITY_API_KEY }} + uses: ./.github/actions/server-test-env + - name: Run Copilot E2E Test ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} uses: ./.github/actions/copilot-test with: script: yarn affine @affine-test/affine-cloud-copilot e2e --forbid-only --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} - openai-key: ${{ secrets.COPILOT_OPENAI_API_KEY }} - google-key: ${{ secrets.COPILOT_GOOGLE_API_KEY }} - fal-key: ${{ secrets.COPILOT_FAL_API_KEY }} - perplexity-key: ${{ secrets.COPILOT_PERPLEXITY_API_KEY }} test-done: needs: