@@ -419,7 +419,8 @@ jobs:
419419 runs-on : macos-latest
420420 needs :
421421 - setup
422- - client_gen
422+ - specs
423+ - scripts
423424 if : |
424425 always() &&
425426 needs.setup.outputs.RUN_GEN == 'true' &&
@@ -432,19 +433,20 @@ jobs:
432433 steps :
433434 - uses : actions/checkout@v4
434435
435- - name : Download artifacts
436+ - name : Download specs artifacts
436437 uses : ./scripts/ci/actions/restore-artifacts
437438 with :
438- type : languages
439- languages : |
440- kotlin
439+ type : specs
441440
442441 - name : Setup
443442 uses : ./.github/actions/setup
444443 with :
445444 type : minimal
446445 language : kotlin
447446
447+ - name : Generate clients
448+ run : yarn cli generate kotlin ${{ fromJSON(needs.setup.outputs.KOTLIN_DATA).toRun }}
449+
448450 - name : Build clients for macOS
449451 id : build
450452 continue-on-error : true
@@ -463,7 +465,8 @@ jobs:
463465 runs-on : macos-latest
464466 needs :
465467 - setup
466- - client_gen
468+ - specs
469+ - scripts
467470 if : |
468471 always() &&
469472 needs.setup.outputs.RUN_GEN == 'true' &&
@@ -481,13 +484,10 @@ jobs:
481484 - uses : actions/checkout@v4
482485 if : ${{ env.ALGOLIA_APPLICATION_ID != '' }}
483486
484- - name : Download artifacts
487+ - name : Download specs artifacts
485488 uses : ./scripts/ci/actions/restore-artifacts
486- if : ${{ env.ALGOLIA_APPLICATION_ID != '' }}
487489 with :
488- type : languages
489- languages : |
490- swift
490+ type : specs
491491
492492 - name : Setup
493493 uses : ./.github/actions/setup
@@ -497,6 +497,12 @@ jobs:
497497 language : swift
498498 version : ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).version }}
499499
500+ - name : Generate clients
501+ run : yarn cli generate swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }}
502+
503+ - name : Generate tests
504+ run : yarn cli cts generate swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }}
505+
500506 - name : Run tests on macOS
501507 id : run-test
502508 if : ${{ env.ALGOLIA_APPLICATION_ID != '' }}
0 commit comments