@@ -190,8 +190,7 @@ runs:
190
190
'clients/algoliasearch-client-javascript/packages/algoliasearch/**',
191
191
'clients/algoliasearch-client-javascript/packages/client-search/**',
192
192
'clients/algoliasearch-client-javascript/packages/client-analytics/**',
193
- 'clients/algoliasearch-client-javascript/packages/client-personalization/**',
194
- 'templates/javascript/**'
193
+ 'clients/algoliasearch-client-javascript/packages/client-personalization/**'
195
194
)}}
196
195
197
196
- name : Restore built JavaScript search client
@@ -207,7 +206,8 @@ runs:
207
206
'clients/algoliasearch-client-javascript/packages/client-search/builds/**',
208
207
'clients/algoliasearch-client-javascript/packages/client-search/package.json',
209
208
'specs/bundled/search.yml',
210
- 'templates/javascript/**'
209
+ 'templates/javascript/**',
210
+ 'generators/src/**'
211
211
)}}
212
212
213
213
- name : Restore built JavaScript recommend client
@@ -223,7 +223,8 @@ runs:
223
223
'clients/algoliasearch-client-javascript/packages/recommend/builds/**',
224
224
'clients/algoliasearch-client-javascript/packages/recommend/package.json',
225
225
'specs/bundled/recommend.yml',
226
- 'templates/javascript/**'
226
+ 'templates/javascript/**',
227
+ 'generators/src/**'
227
228
)}}
228
229
229
230
- name : Restore built JavaScript query-suggestions client
@@ -239,7 +240,8 @@ runs:
239
240
'clients/algoliasearch-client-javascript/packages/client-query-suggestions/builds/**',
240
241
'clients/algoliasearch-client-javascript/packages/client-query-suggestions/package.json',
241
242
'specs/bundled/query-suggestions.yml',
242
- 'templates/javascript/**'
243
+ 'templates/javascript/**',
244
+ 'generators/src/**'
243
245
)}}
244
246
245
247
- name : Restore built JavaScript personalization client
@@ -255,7 +257,8 @@ runs:
255
257
'clients/algoliasearch-client-javascript/packages/client-personalization/builds/**',
256
258
'clients/algoliasearch-client-javascript/packages/client-personalization/package.json',
257
259
'specs/bundled/personalization.yml',
258
- 'templates/javascript/**'
260
+ 'templates/javascript/**',
261
+ 'generators/src/**'
259
262
)}}
260
263
261
264
- name : Restore built JavaScript analytics client
@@ -271,7 +274,8 @@ runs:
271
274
'clients/algoliasearch-client-javascript/packages/client-analytics/builds/**',
272
275
'clients/algoliasearch-client-javascript/packages/client-analytics/package.json',
273
276
'specs/bundled/analytics.yml',
274
- 'templates/javascript/**'
277
+ 'templates/javascript/**',
278
+ 'generators/src/**'
275
279
)}}
276
280
277
281
- name : Restore built JavaScript abtesting client
@@ -287,7 +291,8 @@ runs:
287
291
'clients/algoliasearch-client-javascript/packages/client-abtesting/builds/**',
288
292
'clients/algoliasearch-client-javascript/packages/client-abtesting/package.json',
289
293
'specs/bundled/abtesting.yml',
290
- 'templates/javascript/**'
294
+ 'templates/javascript/**',
295
+ 'generators/src/**'
291
296
)}}
292
297
293
298
- name : Restore built JavaScript insights client
@@ -303,7 +308,8 @@ runs:
303
308
'clients/algoliasearch-client-javascript/packages/client-insights/builds/**',
304
309
'clients/algoliasearch-client-javascript/packages/client-insights/package.json',
305
310
'specs/bundled/insights.yml',
306
- 'templates/javascript/**'
311
+ 'templates/javascript/**',
312
+ 'generators/src/**'
307
313
)}}
308
314
309
315
- name : Restore built JavaScript sources client
@@ -319,7 +325,8 @@ runs:
319
325
'clients/algoliasearch-client-javascript/packages/client-sources/builds/**',
320
326
'clients/algoliasearch-client-javascript/packages/client-sources/package.json',
321
327
'specs/bundled/sources.yml',
322
- 'templates/javascript/**'
328
+ 'templates/javascript/**',
329
+ 'generators/src/**'
323
330
)}}
324
331
325
332
- name : Restore built JavaScript predict client
@@ -335,34 +342,130 @@ runs:
335
342
'clients/algoliasearch-client-javascript/packages/client-predict/builds/**',
336
343
'clients/algoliasearch-client-javascript/packages/client-predict/package.json',
337
344
'specs/bundled/predict.yml',
338
- 'templates/javascript/**'
345
+ 'templates/javascript/**',
346
+ 'generators/src/**'
339
347
)}}
340
348
341
349
# Restore Java clients: used during 'cts' or 'codegen'
342
- - name : Restore built Java client
350
+ - name : Restore built Java search client
343
351
if : ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
344
352
uses : actions/cache@v2
345
353
with :
346
354
path : clients/algoliasearch-client-java-2
347
355
key : |
348
356
${{ env.CACHE_VERSION }}-${{
349
357
hashFiles(
350
- 'clients/algoliasearch-client-java-2/**',
358
+ 'clients/algoliasearch-client-java-2/search/**',
359
+ 'clients/algoliasearch-client-java-2/model/search/**',
360
+ 'specs/bundled/search.yml',
351
361
'templates/java/**',
352
- 'specs/bundled/search.yml '
362
+ 'generators/src/** '
353
363
)}}
354
364
355
365
# Restore PHP clients: used during 'cts' or 'codegen'
356
- - name : Restore built PHP client
366
+ - name : Restore built PHP search client
367
+ if : ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
368
+ uses : actions/cache@v2
369
+ with :
370
+ path : clients/algoliasearch-client-php
371
+ key : |
372
+ ${{ env.CACHE_VERSION }}-${{
373
+ hashFiles(
374
+ 'clients/algoliasearch-client-php/lib/Api/SearchApi.php',
375
+ 'clients/algoliasearch-client-php/lib/Configuration/SearchConfig.php',
376
+ 'specs/bundled/search.yml',
377
+ 'templates/php/**',
378
+ 'generators/src/**'
379
+ )}}
380
+
381
+ - name : Restore built PHP recommend client
382
+ if : ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
383
+ uses : actions/cache@v2
384
+ with :
385
+ path : clients/algoliasearch-client-php
386
+ key : |
387
+ ${{ env.CACHE_VERSION }}-${{
388
+ hashFiles(
389
+ 'clients/algoliasearch-client-php/lib/Api/RecommendApi.php',
390
+ 'clients/algoliasearch-client-php/lib/Configuration/RecommendConfig.php',
391
+ 'specs/bundled/recommend.yml',
392
+ 'templates/php/**',
393
+ 'generators/src/**'
394
+ )}}
395
+
396
+ - name : Restore built PHP personalization client
397
+ if : ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
398
+ uses : actions/cache@v2
399
+ with :
400
+ path : clients/algoliasearch-client-php
401
+ key : |
402
+ ${{ env.CACHE_VERSION }}-${{
403
+ hashFiles(
404
+ 'clients/algoliasearch-client-php/lib/Api/PersonalizationApi.php',
405
+ 'clients/algoliasearch-client-php/lib/Configuration/PersonalizationConfig.php',
406
+ 'specs/bundled/personalization.yml',
407
+ 'templates/php/**',
408
+ 'generators/src/**'
409
+ )}}
410
+
411
+ - name : Restore built PHP analytics client
357
412
if : ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
358
413
uses : actions/cache@v2
359
414
with :
360
415
path : clients/algoliasearch-client-php
361
416
key : |
362
417
${{ env.CACHE_VERSION }}-${{
363
418
hashFiles(
364
- 'clients/algoliasearch-client-php/*',
365
- 'specs/bundled/search.yml'
419
+ 'clients/algoliasearch-client-php/lib/Api/AnalyticsApi.php',
420
+ 'clients/algoliasearch-client-php/lib/Configuration/AnalyticsConfig.php',
421
+ 'specs/bundled/analytics.yml',
422
+ 'templates/php/**',
423
+ 'generators/src/**'
424
+ )}}
425
+
426
+ - name : Restore built PHP insights client
427
+ if : ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
428
+ uses : actions/cache@v2
429
+ with :
430
+ path : clients/algoliasearch-client-php
431
+ key : |
432
+ ${{ env.CACHE_VERSION }}-${{
433
+ hashFiles(
434
+ 'clients/algoliasearch-client-php/lib/Api/InsightsApi.php',
435
+ 'clients/algoliasearch-client-php/lib/Configuration/InsightsConfig.php',
436
+ 'specs/bundled/insights.yml',
437
+ 'templates/php/**',
438
+ 'generators/src/**'
439
+ )}}
440
+
441
+ - name : Restore built PHP abtesting client
442
+ if : ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
443
+ uses : actions/cache@v2
444
+ with :
445
+ path : clients/algoliasearch-client-php
446
+ key : |
447
+ ${{ env.CACHE_VERSION }}-${{
448
+ hashFiles(
449
+ 'clients/algoliasearch-client-php/lib/Api/AbTestingApi.php',
450
+ 'clients/algoliasearch-client-php/lib/Configuration/AbTestingConfig.php',
451
+ 'specs/bundled/abtesting.yml',
452
+ 'templates/php/**',
453
+ 'generators/src/**'
454
+ )}}
455
+
456
+ - name : Restore built PHP query-suggestions client
457
+ if : ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
458
+ uses : actions/cache@v2
459
+ with :
460
+ path : clients/algoliasearch-client-php
461
+ key : |
462
+ ${{ env.CACHE_VERSION }}-${{
463
+ hashFiles(
464
+ 'clients/algoliasearch-client-php/lib/Api/QuerySuggestionsApi.php',
465
+ 'clients/algoliasearch-client-php/lib/Configuration/QuerySuggestionsConfig.php',
466
+ 'specs/bundled/query-suggestions.yml',
467
+ 'templates/php/**',
468
+ 'generators/src/**'
366
469
)}}
367
470
368
471
- name : Install JavaScript dependencies
0 commit comments