Skip to content

Commit

Permalink
feat(java): generate all clients APIC-410 (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Apr 15, 2022
1 parent fab6c18 commit f01a5b9
Show file tree
Hide file tree
Showing 23 changed files with 5,086 additions and 8,599 deletions.
107 changes: 106 additions & 1 deletion .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,118 @@ runs:
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-java-2/search/**',
'clients/algoliasearch-client-java-2/api/SearchApi.java',
'clients/algoliasearch-client-java-2/model/search/**',
'specs/bundled/search.yml',
'templates/java/**',
'generators/src/**'
)}}
- name: Restore built Java recommend client
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-java-2
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-java-2/api/RecommendApi.java',
'clients/algoliasearch-client-java-2/model/recommend/**',
'specs/bundled/recommend.yml',
'templates/java/**',
'generators/src/**'
)}}
- name: Restore built Java personalization client
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-java-2
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-java-2/api/PersonalizationApi.java',
'clients/algoliasearch-client-java-2/model/personalization/**',
'specs/bundled/personalization.yml',
'templates/java/**',
'generators/src/**'
)}}
- name: Restore built Java analytics client
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-java-2
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-java-2/api/AnalyticsApi.java',
'clients/algoliasearch-client-java-2/model/analytics/**',
'specs/bundled/analytics.yml',
'templates/java/**',
'generators/src/**'
)}}
- name: Restore built Java insights client
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-java-2
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-java-2/api/Insights.java',
'clients/algoliasearch-client-java-2/model/insights/**',
'specs/bundled/insights.yml',
'templates/java/**',
'generators/src/**'
)}}
- name: Restore built Java abtesting client
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-java-2
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-java-2/api/AbtestingApi.java',
'clients/algoliasearch-client-java-2/model/abtesting/**',
'specs/bundled/abtesting.yml',
'templates/java/**',
'generators/src/**'
)}}
- name: Restore built Java query-suggestions client
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-java-2
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-java-2/api/QuerySuggestionsApi.java',
'clients/algoliasearch-client-java-2/model/querySuggestions/**',
'specs/bundled/query-suggestions.yml',
'templates/java/**',
'generators/src/**'
)}}
- name: Restore built Java predict client
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-java-2
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-java-2/api/PredictApi.java',
'clients/algoliasearch-client-java-2/model/predict/**',
'specs/bundled/predict.yml',
'templates/java/**',
'generators/src/**'
)}}
# Restore PHP clients: used during 'cts' or 'codegen'
- name: Restore built PHP search client
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
Expand Down
Loading

0 comments on commit f01a5b9

Please sign in to comment.