75
75
cd packages/config-yaml
76
76
npm ci
77
77
78
+ install-openai-adapters :
79
+ needs : install-root
80
+ runs-on : ubuntu-latest
81
+ steps :
82
+ - uses : actions/checkout@v4
83
+
84
+ - uses : actions/setup-node@v4
85
+ with :
86
+ node-version-file : " .nvmrc"
87
+
88
+ - uses : actions/cache@v4
89
+ with :
90
+ path : node_modules
91
+ key : ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}
92
+
93
+ - uses : actions/cache@v4
94
+ id : openai-adapters-cache
95
+ with :
96
+ path : packages/openai-adapters/node_modules
97
+ key : ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
98
+
99
+ - name : Install openai-adapters dependencies
100
+ if : steps.openai-adapters-cache.outputs.cache-hit != 'true'
101
+ run : |
102
+ cd packages/openai-adapters
103
+ npm ci
104
+
78
105
config-yaml-checks :
79
106
needs : install-config-yaml
80
107
runs-on : ubuntu-latest
@@ -103,7 +130,6 @@ jobs:
103
130
# Tests are currently failing, commenting out for now
104
131
# npm test
105
132
npm run build
106
-
107
133
install-core :
108
134
needs : install-root
109
135
runs-on : ubuntu-latest
@@ -133,7 +159,7 @@ jobs:
133
159
npm ci
134
160
135
161
core-checks :
136
- needs : [install-core, install-config-yaml]
162
+ needs : [install-core, install-config-yaml, install-openai-adapters ]
137
163
runs-on : ubuntu-latest
138
164
steps :
139
165
- uses : actions/checkout@v4
@@ -160,11 +186,21 @@ jobs:
160
186
path : packages/config-yaml/node_modules
161
187
key : ${{ runner.os }}-config-yaml-node-modules-${{ hashFiles('packages/config-yaml/package-lock.json') }}
162
188
189
+ - uses : actions/cache@v4
190
+ id : openai-adapters-cache
191
+ with :
192
+ path : packages/openai-adapters/node_modules
193
+ key : ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
194
+
163
195
- name : Build config-yaml
164
196
run : |
165
197
cd packages/config-yaml
166
198
npm run build
167
199
200
+ - name : Build openai-adapters
201
+ run : |
202
+ cd packages/openai-adapters
203
+ npm run build
168
204
- name : Type check and lint
169
205
run : |
170
206
cd core
@@ -174,7 +210,8 @@ jobs:
174
210
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
175
211
176
212
install-gui :
177
- needs : [install-root, install-core, install-config-yaml]
213
+ needs :
214
+ [install-root, install-core, install-config-yaml, install-openai-adapters]
178
215
runs-on : ubuntu-latest
179
216
steps :
180
217
- uses : actions/checkout@v4
@@ -205,11 +242,22 @@ jobs:
205
242
path : packages/config-yaml/node_modules
206
243
key : ${{ runner.os }}-config-yaml-node-modules-${{ hashFiles('packages/config-yaml/package-lock.json') }}
207
244
245
+ - uses : actions/cache@v4
246
+ id : openai-adapters-cache
247
+ with :
248
+ path : packages/openai-adapters/node_modules
249
+ key : ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
250
+
208
251
- name : Build config-yaml
209
252
run : |
210
253
cd packages/config-yaml
211
254
npm run build
212
255
256
+ - name : Build openai-adapters
257
+ run : |
258
+ cd packages/openai-adapters
259
+ npm run build
260
+
213
261
- name : Install gui dependencies
214
262
if : steps.gui-cache.outputs.cache-hit != 'true'
215
263
run : |
@@ -221,7 +269,6 @@ jobs:
221
269
runs-on : ubuntu-latest
222
270
steps :
223
271
- uses : actions/checkout@v4
224
-
225
272
- uses : actions/setup-node@v4
226
273
with :
227
274
node-version-file : " .nvmrc"
@@ -260,7 +307,8 @@ jobs:
260
307
npm run lint
261
308
262
309
binary-checks :
263
- needs : [install-root, install-core, install-config-yaml]
310
+ needs :
311
+ [install-root, install-core, install-config-yaml, install-openai-adapters]
264
312
runs-on : ubuntu-latest
265
313
steps :
266
314
- uses : actions/checkout@v4
@@ -291,11 +339,22 @@ jobs:
291
339
path : packages/config-yaml/node_modules
292
340
key : ${{ runner.os }}-config-yaml-node-modules-${{ hashFiles('packages/config-yaml/package-lock.json') }}
293
341
342
+ - uses : actions/cache@v4
343
+ id : openai-adapters-cache
344
+ with :
345
+ path : packages/openai-adapters/node_modules
346
+ key : ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
347
+
294
348
- name : Build config-yaml
295
349
run : |
296
350
cd packages/config-yaml
297
351
npm run build
298
352
353
+ - name : Build openai-adapters
354
+ run : |
355
+ cd packages/openai-adapters
356
+ npm run build
357
+
299
358
- name : Install binary dependencies
300
359
if : steps.binary-cache.outputs.cache-hit != 'true'
301
360
run : |
@@ -308,7 +367,8 @@ jobs:
308
367
npx tsc --noEmit
309
368
310
369
install-vscode :
311
- needs : [install-root, install-core, install-config-yaml]
370
+ needs :
371
+ [install-root, install-core, install-config-yaml, install-openai-adapters]
312
372
runs-on : ubuntu-latest
313
373
steps :
314
374
- uses : actions/checkout@v4
@@ -402,7 +462,7 @@ jobs:
402
462
npm run vitest
403
463
404
464
core-tests :
405
- needs : [install-core, install-config-yaml]
465
+ needs : [install-core, install-config-yaml, install-openai-adapters ]
406
466
runs-on : ubuntu-latest
407
467
steps :
408
468
- uses : actions/checkout@v4
@@ -422,11 +482,22 @@ jobs:
422
482
path : packages/config-yaml/node_modules
423
483
key : ${{ runner.os }}-config-yaml-node-modules-${{ hashFiles('packages/config-yaml/package-lock.json') }}
424
484
485
+ - uses : actions/cache@v4
486
+ id : openai-adapters-cache
487
+ with :
488
+ path : packages/openai-adapters/node_modules
489
+ key : ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
490
+
425
491
- name : Build config-yaml
426
492
run : |
427
493
cd packages/config-yaml
428
494
npm run build
429
495
496
+ - name : Build openai-adapters
497
+ run : |
498
+ cd packages/openai-adapters
499
+ npm run build
500
+
430
501
- name : Run core tests
431
502
run : |
432
503
cd core
@@ -476,7 +547,7 @@ jobs:
476
547
- uses : actions/checkout@v4
477
548
478
549
- name : Cache node modules
479
- uses : actions/cache@v3
550
+ uses : actions/cache@v4
480
551
with :
481
552
path : extensions/vscode/node_modules
482
553
key : ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }}
@@ -515,7 +586,13 @@ jobs:
515
586
516
587
vscode-package-extension :
517
588
runs-on : ubuntu-latest
518
- needs : [install-vscode, install-core, install-config-yaml]
589
+ needs :
590
+ [
591
+ install-vscode,
592
+ install-core,
593
+ install-config-yaml,
594
+ install-openai-adapters,
595
+ ]
519
596
steps :
520
597
- uses : actions/checkout@v4
521
598
@@ -541,11 +618,22 @@ jobs:
541
618
path : packages/config-yaml/node_modules
542
619
key : ${{ runner.os }}-config-yaml-node-modules-${{ hashFiles('packages/config-yaml/package-lock.json') }}
543
620
621
+ - uses : actions/cache@v4
622
+ id : openai-adapters-cache
623
+ with :
624
+ path : packages/openai-adapters/node_modules
625
+ key : ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
626
+
544
627
- name : Build config-yaml
545
628
run : |
546
629
cd packages/config-yaml
547
630
npm run build
548
631
632
+ - name : Build openai-adapters
633
+ run : |
634
+ cd packages/openai-adapters
635
+ npm run build
636
+
549
637
- name : Package extension
550
638
run : |
551
639
cd extensions/vscode
@@ -559,7 +647,13 @@ jobs:
559
647
560
648
vscode-download-e2e-dependencies :
561
649
runs-on : ubuntu-latest
562
- needs : [install-vscode, install-core, install-config-yaml]
650
+ needs :
651
+ [
652
+ install-vscode,
653
+ install-core,
654
+ install-config-yaml,
655
+ install-openai-adapters,
656
+ ]
563
657
steps :
564
658
- uses : actions/checkout@v4
565
659
@@ -612,6 +706,7 @@ jobs:
612
706
install-vscode,
613
707
install-core,
614
708
install-config-yaml,
709
+ install-openai-adapters,
615
710
]
616
711
runs-on : ubuntu-latest
617
712
# Tests requiring secrets need approval from maintainers
@@ -658,11 +753,22 @@ jobs:
658
753
path : packages/config-yaml/node_modules
659
754
key : ${{ runner.os }}-config-yaml-node-modules-${{ hashFiles('packages/config-yaml/package-lock.json') }}
660
755
756
+ - uses : actions/cache@v4
757
+ id : openai-adapters-cache
758
+ with :
759
+ path : packages/openai-adapters/node_modules
760
+ key : ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
761
+
661
762
- name : Build config-yaml
662
763
run : |
663
764
cd packages/config-yaml
664
765
npm run build
665
766
767
+ - name : Build openai-adapters
768
+ run : |
769
+ cd packages/openai-adapters
770
+ npm run build
771
+
666
772
- name : Fix VSCode binary permissions
667
773
run : |
668
774
chmod +x extensions/vscode/e2e/storage/VSCode-linux-x64/code
@@ -726,7 +832,8 @@ jobs:
726
832
path : extensions/vscode/e2e.log
727
833
728
834
gui-tests :
729
- needs : [install-gui, install-core, install-config-yaml]
835
+ needs :
836
+ [install-gui, install-core, install-config-yaml, install-openai-adapters]
730
837
runs-on : ubuntu-latest
731
838
steps :
732
839
- uses : actions/checkout@v4
@@ -752,11 +859,22 @@ jobs:
752
859
path : packages/config-yaml/node_modules
753
860
key : ${{ runner.os }}-config-yaml-node-modules-${{ hashFiles('packages/config-yaml/package-lock.json') }}
754
861
862
+ - uses : actions/cache@v4
863
+ id : openai-adapters-cache
864
+ with :
865
+ path : packages/openai-adapters/node_modules
866
+ key : ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
867
+
755
868
- name : Build config-yaml
756
869
run : |
757
870
cd packages/config-yaml
758
871
npm run build
759
872
873
+ - name : Build openai-adapters
874
+ run : |
875
+ cd packages/openai-adapters
876
+ npm run build
877
+
760
878
- name : Install GUI dependencies
761
879
if : steps.gui-cache.outputs.cache-hit != 'true'
762
880
run : cd gui && npm ci
@@ -769,7 +887,8 @@ jobs:
769
887
npm test
770
888
771
889
jetbrains-tests :
772
- needs : [install-root, core-checks, install-config-yaml]
890
+ needs :
891
+ [install-root, core-checks, install-config-yaml, install-openai-adapters]
773
892
runs-on : ubuntu-latest
774
893
steps :
775
894
- uses : actions/checkout@v4
@@ -784,11 +903,22 @@ jobs:
784
903
path : packages/config-yaml/node_modules
785
904
key : ${{ runner.os }}-config-yaml-node-modules-${{ hashFiles('packages/config-yaml/package-lock.json') }}
786
905
906
+ - uses : actions/cache@v4
907
+ id : openai-adapters-cache
908
+ with :
909
+ path : packages/openai-adapters/node_modules
910
+ key : ${{ runner.os }}-openai-adapters-node-modules-${{ hashFiles('packages/openai-adapters/package-lock.json') }}
911
+
787
912
- name : Build config-yaml
788
913
run : |
789
914
cd packages/config-yaml
790
915
npm run build
791
916
917
+ - name : Build openai-adapters
918
+ run : |
919
+ cd packages/openai-adapters
920
+ npm run build
921
+
792
922
- name : Setup Java
793
923
794
924
with :
@@ -903,6 +1033,7 @@ jobs:
903
1033
- jetbrains-tests
904
1034
- config-yaml-checks
905
1035
- install-config-yaml
1036
+ - install-openai-adapters
906
1037
907
1038
steps :
908
1039
- name : Decide whether the needed jobs succeeded or failed
0 commit comments