File tree 3 files changed +35
-1
lines changed
3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 64
64
65
65
- name : Run tests
66
66
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 }}
Original file line number Diff line number Diff line change 11
11
.pack
12
12
ecosystem-tests /deno /package.json
13
13
ecosystem-tests /* /openai.tgz
14
-
14
+ .dev.vars
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ const projectRunners = {
70
70
'cloudflare-worker' : async ( ) => {
71
71
await installPackage ( ) ;
72
72
73
+ await fs . writeFile ( '.dev.vars' , `OPENAI_API_KEY='${ process . env [ 'OPENAI_API_KEY' ] } '` ) ;
73
74
await run ( 'npm' , [ 'run' , 'tsc' ] ) ;
74
75
75
76
if ( state . live ) {
You can’t perform that action at this time.
0 commit comments