Skip to content

Commit 7a59ec3

Browse files
authored
Merge pull request #1291 from ai16z/fix/integration-fix
fix: integration tests fix
2 parents e0c72a4 + 34687ef commit 7a59ec3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/integrationTests.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ jobs:
4646
- name: Run integration tests
4747
env:
4848
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
49+
if: ${{ env.OPENAI_API_KEY != '' }}
50+
run: pnpm run integrationTests
51+
52+
- name: Skip integration tests
53+
if: ${{ env.OPENAI_API_KEY == '' }}
4954
run: |
50-
if [ -z "$OPENAI_API_KEY" ]; then
51-
echo "Skipping integration tests due to missing required API keys"
52-
exit 1
53-
else
54-
pnpm run integrationTests
55-
fi
55+
echo "Skipping integration tests due to missing required API keys"
56+
exit 1

0 commit comments

Comments
 (0)