Skip to content

Commit 79d4280

Browse files
authored
Merge branch 'main' into fix/template
2 parents ff4f1d9 + 58d7e7f commit 79d4280

File tree

25 files changed

+332
-411
lines changed

25 files changed

+332
-411
lines changed

.github/.cache_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7
1+
7.0.2

.github/actions/cache/action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ runs:
367367
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
368368
uses: actions/cache@v2
369369
with:
370-
path: clients/algoliasearch-client-php
370+
path: clients/algoliasearch-client-php/lib/Api/SearchApi.php
371371
key: |
372372
${{ env.CACHE_VERSION }}-${{
373373
hashFiles(
@@ -382,7 +382,7 @@ runs:
382382
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
383383
uses: actions/cache@v2
384384
with:
385-
path: clients/algoliasearch-client-php
385+
path: clients/algoliasearch-client-php/lib/Api/RecommendApi.php
386386
key: |
387387
${{ env.CACHE_VERSION }}-${{
388388
hashFiles(
@@ -397,7 +397,7 @@ runs:
397397
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
398398
uses: actions/cache@v2
399399
with:
400-
path: clients/algoliasearch-client-php
400+
path: clients/algoliasearch-client-php/lib/Api/PersonalizationApi.php
401401
key: |
402402
${{ env.CACHE_VERSION }}-${{
403403
hashFiles(
@@ -412,7 +412,7 @@ runs:
412412
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
413413
uses: actions/cache@v2
414414
with:
415-
path: clients/algoliasearch-client-php
415+
path: clients/algoliasearch-client-php/lib/Api/AnalyticsApi.php
416416
key: |
417417
${{ env.CACHE_VERSION }}-${{
418418
hashFiles(
@@ -427,7 +427,7 @@ runs:
427427
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
428428
uses: actions/cache@v2
429429
with:
430-
path: clients/algoliasearch-client-php
430+
path: clients/algoliasearch-client-php/lib/Api/InsightsApi.php
431431
key: |
432432
${{ env.CACHE_VERSION }}-${{
433433
hashFiles(
@@ -442,12 +442,12 @@ runs:
442442
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
443443
uses: actions/cache@v2
444444
with:
445-
path: clients/algoliasearch-client-php
445+
path: clients/algoliasearch-client-php/lib/Api/AbtestingApi.php
446446
key: |
447447
${{ env.CACHE_VERSION }}-${{
448448
hashFiles(
449-
'clients/algoliasearch-client-php/lib/Api/AbTestingApi.php',
450-
'clients/algoliasearch-client-php/lib/Configuration/AbTestingConfig.php',
449+
'clients/algoliasearch-client-php/lib/Api/AbtestingApi.php',
450+
'clients/algoliasearch-client-php/lib/Configuration/AbtestingConfig.php',
451451
'specs/bundled/abtesting.yml',
452452
'templates/php/**',
453453
'generators/src/**'
@@ -457,7 +457,7 @@ runs:
457457
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
458458
uses: actions/cache@v2
459459
with:
460-
path: clients/algoliasearch-client-php
460+
path: clients/algoliasearch-client-php/lib/Api/QuerySuggestionsApi.php
461461
key: |
462462
${{ env.CACHE_VERSION }}-${{
463463
hashFiles(

.github/workflows/check.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ jobs:
263263
if: steps.cache.outputs.cache-hit != 'true'
264264
run: yarn cli build clients java ${{ matrix.client.name }}
265265

266+
- name: Show diff for '${{ matrix.client.name }}' client
267+
if: steps.cache.outputs.cache-hit != 'true'
268+
run: git --no-pager diff
269+
266270
client_php:
267271
runs-on: ubuntu-20.04
268272
timeout-minutes: 10
@@ -289,7 +293,7 @@ jobs:
289293
id: cache
290294
uses: actions/cache@v2
291295
with:
292-
path: ${{ matrix.client.folder }}
296+
path: ${{ format('{0}/lib/Api/{1}.php', matrix.client.folder, matrix.client.api) }}
293297
key: |
294298
${{ env.CACHE_VERSION }}-${{
295299
hashFiles(
@@ -308,6 +312,10 @@ jobs:
308312
if: steps.cache.outputs.cache-hit != 'true'
309313
run: yarn cli build clients php ${{ matrix.client.name }}
310314

315+
- name: Show diff for '${{ matrix.client.name }}' client
316+
if: steps.cache.outputs.cache-hit != 'true'
317+
run: git --no-pager diff
318+
311319
client_javascript_tests:
312320
runs-on: ubuntu-20.04
313321
timeout-minutes: 10

0 commit comments

Comments
 (0)