Skip to content

Commit

Permalink
CI: add ecosystem tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Dec 20, 2024
1 parent 262e8e3 commit a894cf0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,36 @@ jobs:

- name: Run tests
run: ./scripts/test

ecosystem_tests:
name: ecosystem tests (v${{ matrix.node-version }})
runs-on: ubuntu-latest
if: github.repository == 'openai/openai-node'
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
node-version: ['18', '20']

steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'

- uses: denoland/setup-deno@v1
with:
deno-version: v1.39.0

- uses: oven-sh/setup-bun@v2

- name: Bootstrap
run: ./scripts/bootstrap

- name: Run ecosystem tests
run: |
yarn tsn ecosystem-tests/cli.ts --live --verbose --parallel --jobs=4 --retry=3
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 comments on commit a894cf0

Please sign in to comment.