Skip to content

Commit 290f6f9

Browse files
committed
CI: add ecosystem tests
1 parent 647ba7a commit 290f6f9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,36 @@ jobs:
6464

6565
- name: Run tests
6666
run: ./scripts/test
67+
68+
ecosystem_tests:
69+
name: ecosystem tests (v${{ matrix.node-version }})
70+
runs-on: ubuntu-latest
71+
if: github.repository == 'openai/openai-node'
72+
timeout-minutes: 20
73+
strategy:
74+
fail-fast: false
75+
matrix:
76+
node-version: ['20']
77+
78+
steps:
79+
- uses: actions/checkout@v4
80+
81+
- name: Set up Node
82+
uses: actions/setup-node@v4
83+
with:
84+
node-version: '${{ matrix.node-version }}'
85+
86+
- uses: denoland/setup-deno@v1
87+
with:
88+
deno-version: v1.39.0
89+
90+
- uses: oven-sh/setup-bun@v2
91+
92+
- name: Bootstrap
93+
run: ./scripts/bootstrap
94+
95+
- name: Run ecosystem tests
96+
run: |
97+
yarn tsn ecosystem-tests/cli.ts --live --verbose --parallel --jobs=4 --retry=3
98+
env:
99+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 commit comments

Comments
 (0)