Skip to content

Commit 5a79f54

Browse files
committed
prevent overlapping paths
1 parent daa1859 commit 5a79f54

File tree

4 files changed

+36
-12
lines changed

4 files changed

+36
-12
lines changed

.github/.cache_version

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

.github/actions/cache/action.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ runs:
367367
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
368368
uses: actions/cache@v2
369369
with:
370-
path: clients/algoliasearch-client-php
370+
path: |
371+
clients/algoliasearch-client-php/lib/Api/SearchApi.php
372+
clients/algoliasearch-client-php/lib/Configuration/SearchConfig.php
371373
key: |
372374
${{ env.CACHE_VERSION }}-${{
373375
hashFiles(
@@ -382,7 +384,9 @@ runs:
382384
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
383385
uses: actions/cache@v2
384386
with:
385-
path: clients/algoliasearch-client-php
387+
path: |
388+
clients/algoliasearch-client-php/lib/Api/RecommendApi.php
389+
clients/algoliasearch-client-php/lib/Configuration/RecommendConfig.php
386390
key: |
387391
${{ env.CACHE_VERSION }}-${{
388392
hashFiles(
@@ -397,7 +401,9 @@ runs:
397401
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
398402
uses: actions/cache@v2
399403
with:
400-
path: clients/algoliasearch-client-php
404+
path: |
405+
clients/algoliasearch-client-php/lib/Api/PersonalizationApi.php
406+
clients/algoliasearch-client-php/lib/Configuration/PersonalizationConfig.php
401407
key: |
402408
${{ env.CACHE_VERSION }}-${{
403409
hashFiles(
@@ -412,7 +418,9 @@ runs:
412418
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
413419
uses: actions/cache@v2
414420
with:
415-
path: clients/algoliasearch-client-php
421+
path: |
422+
clients/algoliasearch-client-php/lib/Api/AnalyticsApi.php
423+
clients/algoliasearch-client-php/lib/Configuration/AnalyticsApi.php
416424
key: |
417425
${{ env.CACHE_VERSION }}-${{
418426
hashFiles(
@@ -427,7 +435,9 @@ runs:
427435
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
428436
uses: actions/cache@v2
429437
with:
430-
path: clients/algoliasearch-client-php
438+
path: |
439+
clients/algoliasearch-client-php/lib/Api/InsightsApi.php
440+
clients/algoliasearch-client-php/lib/Configuration/InsightsConfig.php
431441
key: |
432442
${{ env.CACHE_VERSION }}-${{
433443
hashFiles(
@@ -442,12 +452,14 @@ runs:
442452
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
443453
uses: actions/cache@v2
444454
with:
445-
path: clients/algoliasearch-client-php
455+
path: |
456+
clients/algoliasearch-client-php/lib/Api/AbtestingApi.php
457+
clients/algoliasearch-client-php/lib/Configuration/AbtestingConfig.php
446458
key: |
447459
${{ env.CACHE_VERSION }}-${{
448460
hashFiles(
449-
'clients/algoliasearch-client-php/lib/Api/AbTestingApi.php',
450-
'clients/algoliasearch-client-php/lib/Configuration/AbTestingConfig.php',
461+
'clients/algoliasearch-client-php/lib/Api/AbtestingApi.php',
462+
'clients/algoliasearch-client-php/lib/Configuration/AbtestingConfig.php',
451463
'specs/bundled/abtesting.yml',
452464
'templates/php/**',
453465
'generators/src/**'
@@ -457,7 +469,9 @@ runs:
457469
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
458470
uses: actions/cache@v2
459471
with:
460-
path: clients/algoliasearch-client-php
472+
path: |
473+
clients/algoliasearch-client-php/lib/Api/QuerySuggestionsApi.php
474+
clients/algoliasearch-client-php/lib/Configuration/QuerySuggestionsConfig.php
461475
key: |
462476
${{ env.CACHE_VERSION }}-${{
463477
hashFiles(

.github/workflows/check.yml

Lines changed: 11 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,9 @@ jobs:
289293
id: cache
290294
uses: actions/cache@v2
291295
with:
292-
path: ${{ matrix.client.folder }}
296+
path: |
297+
${{ format('{0}/lib/Api/{1}.php', matrix.client.folder, matrix.client.api) }}
298+
${{ format('{0}/lib/Configuration/{1}.php', matrix.client.folder, matrix.client.config) }}
293299
key: |
294300
${{ env.CACHE_VERSION }}-${{
295301
hashFiles(
@@ -308,6 +314,10 @@ jobs:
308314
if: steps.cache.outputs.cache-hit != 'true'
309315
run: yarn cli build clients php ${{ matrix.client.name }}
310316

317+
- name: Show diff for '${{ matrix.client.name }}' client
318+
if: steps.cache.outputs.cache-hit != 'true'
319+
run: git --no-pager diff
320+
311321
client_javascript_tests:
312322
runs-on: ubuntu-20.04
313323
timeout-minutes: 10

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
"invokerPackage": "Algolia\\AlgoliaSearch",
367367
"globalProperty": "apis,supportingFiles",
368368
"additionalProperties": {
369-
"configClassname": "AbTestingConfig",
369+
"configClassname": "AbtestingConfig",
370370
"hasRegionalHost": true,
371371
"allowedRegions": "us-de",
372372
"variableNamingConvention": "camelCase",

0 commit comments

Comments
 (0)