Skip to content

Commit a9083e9

Browse files
committed
Merge remote-tracking branch 'origin/feat/add-chopper-requester-package' into feat/add-chopper-requester-package
2 parents 8b2a51d + 37585fc commit a9083e9

File tree

1,365 files changed

+37534
-30662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,365 files changed

+37534
-30662
lines changed

.github/actions/setup/action.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ runs:
2121
distribution: zulu
2222
java-version-file: config/.java-version
2323

24-
- name: Validate gradle wrapper
25-
if: inputs.type != 'minimal'
26-
uses: gradle/actions/wrapper-validation@v3
27-
2824
- name: Setup gradle
2925
if: inputs.type != 'minimal'
3026
uses: gradle/actions/setup-gradle@v3
3127
with:
32-
cache-read-only: false
28+
validate-wrappers: true
29+
add-job-summary: 'on-failure'
3330

3431
- name: Download Java formatter
3532
if: inputs.type != 'minimal'
@@ -43,17 +40,6 @@ runs:
4340
node-version-file: .nvmrc
4441
cache: yarn
4542

46-
- name: Get yarn cache directory path
47-
shell: bash
48-
id: yarn-cache-dir
49-
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
50-
51-
- name: Restore Yarn
52-
uses: actions/cache@v4
53-
with:
54-
path: ${{ steps.yarn-cache-dir.outputs.dir || '.yarn/cache' }}
55-
key: yarn-cache-monorepo-${{ hashFiles('yarn.lock') }}
56-
5743
- name: Install JavaScript dependencies
5844
shell: bash
5945
run: YARN_ENABLE_HARDENED_MODE=0 yarn install
@@ -184,6 +170,15 @@ runs:
184170
ruby-version: ${{ steps.versions.outputs.RUBY_VERSION }}
185171
bundler-cache: true
186172

173+
- name: Install Ruby formatter
174+
if: ${{ inputs.language == 'ruby' }}
175+
shell: bash
176+
run: |
177+
curl --retry 3 -L https://github.com/fables-tales/rubyfmt/releases/download/v0.10.0/rubyfmt-v0.10.0-Linux-x86_64.tar.gz > rubyfmt.tar.gz
178+
tar -xzf rubyfmt.tar.gz
179+
mv tmp/releases/v0.10.0-Linux/rubyfmt /usr/local/bin
180+
rm -rf rubyfmt.tar.gz tmp
181+
187182
# Csharp
188183
- name: Install dotnet
189184
if: ${{ inputs.language == 'csharp' }}

.github/workflows/check.yml

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ jobs:
349349
- client_gen
350350
if: |
351351
always() &&
352+
needs.setup.outputs.RUN_GEN == 'true' &&
352353
needs.setup.outputs.RUN_MACOS_KOTLIN_BUILD == 'true' &&
353354
!contains(needs.*.result, 'cancelled') &&
354355
!contains(needs.*.result, 'failure')
@@ -412,8 +413,6 @@ jobs:
412413
- setup
413414
- client_gen
414415
- client_gen_javascript
415-
- swift_cts_macos
416-
- kotlin_build_macos
417416
if: |
418417
always() &&
419418
!contains(needs.*.result, 'cancelled') &&
@@ -422,6 +421,7 @@ jobs:
422421
pull-requests: write
423422
outputs:
424423
success: ${{ steps.setoutput.outputs.success }}
424+
generatedCommit: ${{ steps.pushGeneratedCode.outputs.GENERATED_COMMIT || github.event.pull_request.head.ref }}
425425
steps:
426426
- uses: actions/checkout@v4
427427
with:
@@ -495,25 +495,6 @@ jobs:
495495
| 🍃 Generated commit | [`${{ steps.pushGeneratedCode.outputs.GENERATED_COMMIT }}`](${{ github.event.pull_request.base.repo.html_url }}/commit/${{ steps.pushGeneratedCode.outputs.GENERATED_COMMIT }}) |
496496
| 🌲 Generated branch | [`generated/${{ github.head_ref }}`](${{ github.event.pull_request.base.repo.html_url }}/tree/generated/${{ github.head_ref }}) |
497497
498-
- name: Spread generation to each repository
499-
id: spreadGeneration
500-
if: github.ref == 'refs/heads/main'
501-
run: yarn workspace scripts spreadGeneration
502-
env:
503-
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
504-
505-
- name: Wait for all release CI
506-
if: github.ref == 'refs/heads/main'
507-
run: yarn workspace scripts waitForAllReleases ${{ steps.spreadGeneration.outputs.PUSHED_LANGUAGES }}
508-
env:
509-
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
510-
511-
- name: Push specs to algolia documentation
512-
if: github.ref == 'refs/heads/main'
513-
run: yarn workspace scripts pushToAlgoliaDoc
514-
env:
515-
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
516-
517498
- name: Set output
518499
id: setoutput
519500
run: echo "success=true" >> "$GITHUB_OUTPUT"
@@ -523,10 +504,50 @@ jobs:
523504
timeout-minutes: 10
524505
needs:
525506
- codegen
507+
- swift_cts_macos
508+
- kotlin_build_macos
526509
if: always()
527510
steps:
528511
- run: |
529512
if [[ "${{ needs.codegen.outputs.success }}" != "true" ]]; then
530513
echo "codegen step didn't succeed"
531514
exit 1
532515
fi
516+
517+
push_and_release:
518+
runs-on: ubuntu-22.04
519+
timeout-minutes: 15
520+
needs:
521+
- codegen
522+
- check_green
523+
if: ${{ github.ref == 'refs/heads/main' }}
524+
permissions:
525+
pull-requests: write
526+
steps:
527+
- uses: actions/checkout@v4
528+
with:
529+
fetch-depth: 0
530+
ref: ${{ needs.codegen.outputs.generatedCommit }}
531+
token: ${{ secrets.ALGOLIA_BOT_TOKEN }}
532+
repository: ${{ github.event.pull_request.head.repo.full_name }}
533+
534+
- name: Setup
535+
uses: ./.github/actions/setup
536+
with:
537+
type: minimal
538+
539+
- name: Spread generation to each repository
540+
id: spreadGeneration
541+
run: yarn workspace scripts spreadGeneration
542+
env:
543+
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
544+
545+
- name: Wait for all release CI
546+
run: yarn workspace scripts waitForAllReleases ${{ steps.spreadGeneration.outputs.PUSHED_LANGUAGES }}
547+
env:
548+
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
549+
550+
- name: Push specs to algolia documentation
551+
run: yarn workspace scripts pushToAlgoliaDoc
552+
env:
553+
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}

0 commit comments

Comments
 (0)