🔧 (typescript_test.yml): add OPENAI_API_KEY to environment variables in CI

 (basicExamples.spec.ts): refactor API key check to run at the start of tests
This commit is contained in:
cristhianzl 2024-06-26 20:30:27 -03:00
commit b645d17c87
2 changed files with 22 additions and 20 deletions

View file

@ -25,6 +25,8 @@ jobs:
matrix:
shardIndex: [1, 2, 3, 4, 5]
shardTotal: [5]
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4