Skip to content

Commit 20b4c74

Browse files
authored
Merge branch 'develop' into feat/agent_redis_support
2 parents 0508c2d + ddb7684 commit 20b4c74

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/integrationTests.yaml

+13-4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
run: pnpm run smokeTests
2626
integration-tests:
2727
runs-on: ubuntu-latest
28+
env:
29+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
2830
steps:
2931
- uses: actions/checkout@v4
3032

@@ -43,14 +45,21 @@ jobs:
4345
- name: Build packages
4446
run: pnpm build
4547

48+
- name: Check for API key
49+
id: check_api_key
50+
run: |
51+
if [ -z "$OPENAI_API_KEY" ]; then
52+
echo "::set-output name=api_key_present::false"
53+
else
54+
echo "::set-output name=api_key_present::true"
55+
fi
56+
4657
- name: Run integration tests
47-
env:
48-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
49-
if: ${{ env.OPENAI_API_KEY != '' }}
58+
if: steps.check_api_key.outputs.api_key_present == 'true'
5059
run: pnpm run integrationTests
5160

5261
- name: Skip integration tests
53-
if: ${{ env.OPENAI_API_KEY == '' }}
62+
if: steps.check_api_key.outputs.api_key_present == 'false'
5463
run: |
5564
echo "Skipping integration tests due to missing required API keys"
5665
exit 1

0 commit comments

Comments
 (0)