@@ -200,46 +200,46 @@ jobs:
200
200
with :
201
201
type : specs
202
202
203
- - name : Remove generated clients
204
- if : ${{ startsWith(github.head_ref, 'chore/prepare-release-') }}
205
- run : |
206
- cd clients/algoliasearch-client-javascript/packages
207
- find . -mindepth 1 -maxdepth 1 ! -name 'requester-*' ! -name 'logger-*' ! -name 'client-common' -type d -exec rm -rf {}/src {}/model {}/dist {}/builds \;
203
+ # - name: Remove generated clients
204
+ # if: ${{ startsWith(github.head_ref, 'chore/prepare-release-') }}
205
+ # run: |
206
+ # cd clients/algoliasearch-client-javascript/packages
207
+ # find . -mindepth 1 -maxdepth 1 ! -name 'requester-*' ! -name 'logger-*' ! -name 'client-common' -type d -exec rm -rf {}/src {}/model {}/dist {}/builds \;
208
208
209
209
- name : Setup
210
210
uses : ./.github/actions/setup
211
211
with :
212
212
language : javascript
213
213
version : ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).version }}
214
214
215
- - name : Generate clients
216
- run : yarn cli generate javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
215
+ # - name: Generate clients
216
+ # run: yarn cli generate javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
217
217
218
218
- name : Update `yarn.lock` for JavaScript
219
219
run : cd clients/algoliasearch-client-javascript && YARN_ENABLE_HARDENED_MODE=0 YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install
220
220
221
221
- name : Build clients
222
222
run : cd clients/algoliasearch-client-javascript && yarn build
223
223
224
- - name : Build the playground
225
- run : yarn cli build playground javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
226
-
227
- - name : Build the browser playground
228
- run : yarn workspace javascript-playground-browser build
229
-
230
- - name : Run common and requester tests
231
- run : cd clients/algoliasearch-client-javascript && yarn test ${{ !contains(fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun, 'algoliasearch') && '--ignore algoliasearch' || '' }}
232
-
233
- - name : Test JavaScript bundle size
234
- if : ${{ startsWith(github.head_ref, 'chore/prepare-release-') }}
235
- run : cd clients/algoliasearch-client-javascript && yarn test:size
236
-
237
- - name : Test JavaScript bundle and types
238
- if : ${{ startsWith(github.head_ref, 'chore/prepare-release-') }}
239
- run : cd clients/algoliasearch-client-javascript && yarn test:bundle
240
-
241
- - name : Remove previous CTS output
242
- run : rm -rf ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).testsToDelete }}
224
+ # - name: Build the playground
225
+ # run: yarn cli build playground javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
226
+ #
227
+ # - name: Build the browser playground
228
+ # run: yarn workspace javascript-playground-browser build
229
+ #
230
+ # - name: Run common and requester tests
231
+ # run: cd clients/algoliasearch-client-javascript && yarn test ${{ !contains(fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun, 'algoliasearch') && '--ignore algoliasearch' || '' }}
232
+ #
233
+ # - name: Test JavaScript bundle size
234
+ # if: ${{ startsWith(github.head_ref, 'chore/prepare-release-') }}
235
+ # run: cd clients/algoliasearch-client-javascript && yarn test:size
236
+ #
237
+ # - name: Test JavaScript bundle and types
238
+ # if: ${{ startsWith(github.head_ref, 'chore/prepare-release-') }}
239
+ # run: cd clients/algoliasearch-client-javascript && yarn test:bundle
240
+ #
241
+ # - name: Remove previous CTS output
242
+ # run: rm -rf ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).testsToDelete }}
243
243
244
244
- name : Generate CTS
245
245
run : yarn cli cts generate javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
@@ -265,30 +265,30 @@ jobs:
265
265
- name : Run unit CTS
266
266
run : yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --no-e2e
267
267
268
- - name : Run e2e CTS
269
- id : cts-e2e
270
- continue-on-error : true
271
- if : ${{ !github.event.pull_request.head.repo.fork && !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') }}
272
- run : yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --no-client --no-requests
273
-
274
- - name : Retry e2e CTS
275
- if : ${{ steps.cts-e2e.outcome == 'failure' }}
276
- run : yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --no-client --no-requests
277
-
278
- - name : Run benchmarks
279
- run : yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --benchmark --no-client --no-requests --no-e2e
268
+ # - name: Run e2e CTS
269
+ # id: cts-e2e
270
+ # continue-on-error: true
271
+ # if: ${{ !github.event.pull_request.head.repo.fork && !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') }}
272
+ # run: yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --no-client --no-requests
273
+ #
274
+ # - name: Retry e2e CTS
275
+ # if: ${{ steps.cts-e2e.outcome == 'failure' }}
276
+ # run: yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --no-client --no-requests
277
+ #
278
+ # - name: Run benchmarks
279
+ # run: yarn cli cts run javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }} --benchmark --no-client --no-requests --no-e2e
280
280
281
281
- name : Generate code snippets
282
282
run : yarn cli snippets javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
283
283
284
284
- name : Build the snippets to check validity
285
285
run : yarn cli build snippets javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
286
286
287
- - name : Generate code guides
288
- run : yarn cli guides javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
289
-
290
- - name : Build the guides to check validity
291
- run : yarn cli build guides javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
287
+ # - name: Generate code guides
288
+ # run: yarn cli guides javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
289
+ #
290
+ # - name: Build the guides to check validity
291
+ # run: yarn cli build guides javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
292
292
293
293
- name : Zip artifact before storing
294
294
run : zip -r -y clients-javascript.zip clients/algoliasearch-client-javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).testsToStore }} ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).guidesToStore }} -x "**/node_modules**" "**/.yarn/cache/**" "**/.yarn/install-state.gz" "**/build/**" "**/dist/**" "**/.gradle/**" "**/bin/**" "**/.nx/**"
@@ -334,75 +334,75 @@ jobs:
334
334
language : ${{ matrix.client.language }}
335
335
version : ${{ matrix.client.version }}
336
336
337
- - name : Generate clients
338
- run : yarn cli generate ${{ matrix.client.language }} ${{ matrix.client.toRun }}
337
+ # - name: Generate clients
338
+ # run: yarn cli generate ${{ matrix.client.language }} ${{ matrix.client.toRun }}
339
339
340
340
# no need to build the clients here, it will be done in the Run CTS step anyway.
341
341
342
342
- name : Update composer.lock
343
343
if : ${{ matrix.client.language == 'php' && startsWith(github.head_ref, 'chore/renovateBaseBranch') && matrix.client.isMainVersion }}
344
344
run : cd ${{ matrix.client.path }} && composer update
345
345
346
- - name : Check for file duplicates in Swift
347
- if : ${{ matrix.client.language == 'swift' && matrix.client.isMainVersion }}
348
- run : |
349
- set -eo pipefail
350
- cd clients/algoliasearch-client-swift
351
- find Sources -type f | rev | cut -d '/' -f1 | rev | sort | uniq -d
352
- [ $(find Sources -type f | rev | cut -d '/' -f1 | rev | sort | uniq -d | wc -l) -gt 0 ] && echo "Duplicates found" && exit 1 || echo "No duplicate found"
353
-
354
- - name : Build the playground
355
- run : yarn cli build playground ${{ matrix.client.language }}
356
-
357
- - name : Run Java 'algoliasearch' public API validation
358
- if : ${{ github.base_ref == 'main' && matrix.client.language == 'java' && matrix.client.isMainVersion && !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-bc]') }}
359
- run : |
360
- cd ${{ matrix.client.path }}
361
- exit_code=0
362
- ./gradlew :api:japicmp || exit_code=$?
363
-
364
- FILE=./api/build/reports/japi.txt
365
-
366
- if [[ -f "$FILE" ]]; then
367
- cat $FILE
368
- fi
369
-
370
- exit $exit_code
371
-
372
- - name : Remove previous CTS output
373
- run : rm -rf ${{ matrix.client.testsToDelete }} || true
346
+ # - name: Check for file duplicates in Swift
347
+ # if: ${{ matrix.client.language == 'swift' && matrix.client.isMainVersion }}
348
+ # run: |
349
+ # set -eo pipefail
350
+ # cd clients/algoliasearch-client-swift
351
+ # find Sources -type f | rev | cut -d '/' -f1 | rev | sort | uniq -d
352
+ # [ $(find Sources -type f | rev | cut -d '/' -f1 | rev | sort | uniq -d | wc -l) -gt 0 ] && echo "Duplicates found" && exit 1 || echo "No duplicate found"
353
+
354
+ # - name: Build the playground
355
+ # run: yarn cli build playground ${{ matrix.client.language }}
356
+
357
+ # - name: Run Java 'algoliasearch' public API validation
358
+ # if: ${{ github.base_ref == 'main' && matrix.client.language == 'java' && matrix.client.isMainVersion && !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-bc]') }}
359
+ # run: |
360
+ # cd ${{ matrix.client.path }}
361
+ # exit_code=0
362
+ # ./gradlew :api:japicmp || exit_code=$?
363
+ #
364
+ # FILE=./api/build/reports/japi.txt
365
+ #
366
+ # if [[ -f "$FILE" ]]; then
367
+ # cat $FILE
368
+ # fi
369
+ #
370
+ # exit $exit_code
371
+
372
+ # - name: Remove previous CTS output
373
+ # run: rm -rf ${{ matrix.client.testsToDelete }} || true
374
374
375
375
- name : Generate CTS
376
376
run : yarn cli cts generate ${{ matrix.client.language }} ${{ matrix.client.toRun }} --language-version ${{ matrix.client.version }}
377
377
378
378
- name : Run unit CTS
379
379
run : yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} --no-e2e
380
380
381
- - name : Run e2e CTS
382
- id : cts-e2e
383
- continue-on-error : true
384
- if : ${{ !github.event.pull_request.head.repo.fork && !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') }}
385
- run : yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} --no-client --no-requests
386
-
387
- - name : Retry e2e CTS
388
- if : ${{ steps.cts-e2e.outcome == 'failure' }}
389
- run : yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} --no-client --no-requests
390
-
391
- - name : Run benchmarks
392
- if : ${{ matrix.client.isMainVersion }}
393
- run : yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} --benchmark --no-client --no-requests --no-e2e
381
+ # - name: Run e2e CTS
382
+ # id: cts-e2e
383
+ # continue-on-error: true
384
+ # if: ${{ !github.event.pull_request.head.repo.fork && !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') }}
385
+ # run: yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} --no-client --no-requests
386
+ #
387
+ # - name: Retry e2e CTS
388
+ # if: ${{ steps.cts-e2e.outcome == 'failure' }}
389
+ # run: yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} --no-client --no-requests
390
+ #
391
+ # - name: Run benchmarks
392
+ # if: ${{ matrix.client.isMainVersion }}
393
+ # run: yarn cli cts run ${{ matrix.client.language }} ${{ matrix.client.toRun }} --benchmark --no-client --no-requests --no-e2e
394
394
395
395
- name : Generate code snippets
396
396
run : yarn cli snippets ${{ matrix.client.language }} ${{ matrix.client.toRun }}
397
397
398
398
- name : Build the snippets to check validity
399
399
run : yarn cli build snippets ${{ matrix.client.language }}
400
400
401
- - name : Generate code guides
402
- run : yarn cli guides ${{ matrix.client.language }} ${{ matrix.client.toRun }}
403
-
404
- - name : Build the guides to check validity
405
- run : yarn cli build guides ${{ matrix.client.language }}
401
+ # - name: Generate code guides
402
+ # run: yarn cli guides ${{ matrix.client.language }} ${{ matrix.client.toRun }}
403
+ #
404
+ # - name: Build the guides to check validity
405
+ # run: yarn cli build guides ${{ matrix.client.language }}
406
406
407
407
- name : Zip artifact before storing
408
408
if : ${{ matrix.client.isMainVersion }}
@@ -435,29 +435,29 @@ jobs:
435
435
steps :
436
436
- uses : actions/checkout@v4
437
437
438
- - name : Download specs artifacts
439
- uses : ./scripts/ci/actions/restore-artifacts
440
- with :
441
- type : specs
442
-
443
- - name : Setup
444
- uses : ./.github/actions/setup
445
- with :
446
- language : kotlin
447
- version : ${{ fromJSON(needs.setup.outputs.KOTLIN_DATA).version }}
448
-
449
- - name : Generate clients
450
- run : yarn cli generate kotlin ${{ fromJSON(needs.setup.outputs.KOTLIN_DATA).toRun }}
451
-
452
- - name : Build clients for macOS
453
- id : build
454
- continue-on-error : true
455
- run : yarn cli build clients kotlin
456
-
457
- - name : Retry build
458
- if : ${{ steps.build.outcome == 'failure' }}
459
- run : yarn cli build clients kotlin
460
-
438
+ # - name: Download specs artifacts
439
+ # uses: ./scripts/ci/actions/restore-artifacts
440
+ # with:
441
+ # type: specs
442
+ #
443
+ # - name: Setup
444
+ # uses: ./.github/actions/setup
445
+ # with:
446
+ # language: kotlin
447
+ # version: ${{ fromJSON(needs.setup.outputs.KOTLIN_DATA).version }}
448
+ #
449
+ # - name: Generate clients
450
+ # run: yarn cli generate kotlin ${{ fromJSON(needs.setup.outputs.KOTLIN_DATA).toRun }}
451
+ #
452
+ # - name: Build clients for macOS
453
+ # id: build
454
+ # continue-on-error: true
455
+ # run: yarn cli build clients kotlin
456
+ #
457
+ # - name: Retry build
458
+ # if: ${{ steps.build.outcome == 'failure' }}
459
+ # run: yarn cli build clients kotlin
460
+ #
461
461
- name : Set output
462
462
id : setoutput
463
463
run : echo "success=true" >> "$GITHUB_OUTPUT"
@@ -486,33 +486,33 @@ jobs:
486
486
- uses : actions/checkout@v4
487
487
if : ${{ env.ALGOLIA_APPLICATION_ID != '' }}
488
488
489
- - name : Download specs artifacts
490
- uses : ./scripts/ci/actions/restore-artifacts
491
- with :
492
- type : specs
493
-
494
- - name : Setup
495
- uses : ./.github/actions/setup
496
- if : ${{ env.ALGOLIA_APPLICATION_ID != '' }}
497
- with :
498
- language : swift
499
- version : ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).version }}
500
-
501
- - name : Generate clients
502
- run : yarn cli generate swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }}
503
-
504
- - name : Generate tests
505
- run : yarn cli cts generate swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }}
506
-
507
- - name : Run tests on macOS
508
- id : run-test
509
- if : ${{ env.ALGOLIA_APPLICATION_ID != '' }}
510
- continue-on-error : true
511
- run : yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
512
-
513
- - name : Retry tests
514
- if : ${{ steps.run-test.outcome == 'failure' }}
515
- run : yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
489
+ # - name: Download specs artifacts
490
+ # uses: ./scripts/ci/actions/restore-artifacts
491
+ # with:
492
+ # type: specs
493
+ #
494
+ # - name: Setup
495
+ # uses: ./.github/actions/setup
496
+ # if: ${{ env.ALGOLIA_APPLICATION_ID != '' }}
497
+ # with:
498
+ # language: swift
499
+ # version: ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).version }}
500
+ #
501
+ # - name: Generate clients
502
+ # run: yarn cli generate swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }}
503
+ #
504
+ # - name: Generate tests
505
+ # run: yarn cli cts generate swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }}
506
+ #
507
+ # - name: Run tests on macOS
508
+ # id: run-test
509
+ # if: ${{ env.ALGOLIA_APPLICATION_ID != '' }}
510
+ # continue-on-error: true
511
+ # run: yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
512
+ #
513
+ # - name: Retry tests
514
+ # if: ${{ steps.run-test.outcome == 'failure' }}
515
+ # run: yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
516
516
517
517
- name : Set output
518
518
id : setoutput
0 commit comments