@@ -102,18 +102,21 @@ jobs:
102
102
- name : Restore cache
103
103
uses : ./.github/actions/cache
104
104
105
+ - name : Cache search client
106
+ id : cache
107
+ uses : actions/cache@v2
108
+ with :
109
+ path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-search/dist
110
+ key : ${{ runner.os }}-js-client-search-${{ hashFiles('clients/algoliasearch-client-javascript/client-search/**') }}
111
+
105
112
- name : Generate search client
113
+ if : steps.cache.outputs.cache-hit != 'true'
106
114
run : yarn generate javascript search
107
115
108
116
- name : Build search client
117
+ if : steps.cache.outputs.cache-hit != 'true'
109
118
run : yarn build:clients javascript search
110
119
111
- - name : Cache search client
112
- uses : actions/cache@v2
113
- with :
114
- path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-search/dist
115
- key : ${{ runner.os }}-js-client-search-${{ hashFiles('yarn.lock') }}
116
-
117
120
client_javascript_recommend :
118
121
runs-on : ubuntu-20.04
119
122
needs : [specs_recommend]
@@ -124,18 +127,21 @@ jobs:
124
127
- name : Restore cache
125
128
uses : ./.github/actions/cache
126
129
130
+ - name : Cache recommend client
131
+ id : cache
132
+ uses : actions/cache@v2
133
+ with :
134
+ path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/recommend/dist
135
+ key : ${{ runner.os }}-js-client-recommend-${{ hashFiles('clients/algoliasearch-client-javascript/recommend/**') }}
136
+
127
137
- name : Generate recommend client
138
+ if : steps.cache.outputs.cache-hit != 'true'
128
139
run : yarn generate javascript recommend
129
140
130
141
- name : Build recommend client
142
+ if : steps.cache.outputs.cache-hit != 'true'
131
143
run : yarn build:clients javascript recommend
132
144
133
- - name : Cache recommend client
134
- uses : actions/cache@v2
135
- with :
136
- path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/recommend/dist
137
- key : ${{ runner.os }}-js-client-recommend-${{ hashFiles('yarn.lock') }}
138
-
139
145
client_javascript_perso :
140
146
runs-on : ubuntu-20.04
141
147
needs : [specs_perso]
@@ -146,18 +152,21 @@ jobs:
146
152
- name : Restore cache
147
153
uses : ./.github/actions/cache
148
154
155
+ - name : Cache personalization client
156
+ id : cache
157
+ uses : actions/cache@v2
158
+ with :
159
+ path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-personalization/dist
160
+ key : ${{ runner.os }}-js-client-personalization-${{ hashFiles('clients/algoliasearch-client-javascript/client-personalization/**') }}
161
+
149
162
- name : Generate personalization client
163
+ if : steps.cache.outputs.cache-hit != 'true'
150
164
run : yarn generate javascript personalization
151
165
152
166
- name : Build personalization client
167
+ if : steps.cache.outputs.cache-hit != 'true'
153
168
run : yarn build:clients javascript personalization
154
169
155
- - name : Cache personalization client
156
- uses : actions/cache@v2
157
- with :
158
- path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-personalization/dist
159
- key : ${{ runner.os }}-js-client-personalization-${{ hashFiles('yarn.lock') }}
160
-
161
170
client_javascript_analytics :
162
171
runs-on : ubuntu-20.04
163
172
needs : [specs_analytics]
@@ -168,18 +177,21 @@ jobs:
168
177
- name : Restore cache
169
178
uses : ./.github/actions/cache
170
179
180
+ - name : Cache analytics client
181
+ id : cache
182
+ uses : actions/cache@v2
183
+ with :
184
+ path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-analytics/dist
185
+ key : ${{ runner.os }}-js-client-analytics-${{ hashFiles('clients/algoliasearch-client-javascript/client-analytics/**') }}
186
+
171
187
- name : Generate analytics client
188
+ if : steps.cache.outputs.cache-hit != 'true'
172
189
run : yarn generate javascript analytics
173
190
174
191
- name : Build analytics client
192
+ if : steps.cache.outputs.cache-hit != 'true'
175
193
run : yarn build:clients javascript analytics
176
194
177
- - name : Cache analytics client
178
- uses : actions/cache@v2
179
- with :
180
- path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-analytics/dist
181
- key : ${{ runner.os }}-js-client-analytics-${{ hashFiles('yarn.lock') }}
182
-
183
195
client_java_search :
184
196
runs-on : ubuntu-20.04
185
197
needs : [specs_search]
@@ -192,18 +204,21 @@ jobs:
192
204
with :
193
205
job : java
194
206
207
+ - name : Cache built clients
208
+ id : cache
209
+ uses : actions/cache@v2
210
+ with :
211
+ path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-java-2/target
212
+ key : ${{ runner.os }}-java-client-${{ hashFiles('clients/algoliasearch-client-java-2/**') }}
213
+
195
214
- name : Generate search client
215
+ if : steps.cache.outputs.cache-hit != 'true'
196
216
run : yarn generate java search
197
217
198
218
- name : Build search client
219
+ if : steps.cache.outputs.cache-hit != 'true'
199
220
run : yarn build:clients java search
200
221
201
- - name : Cache built clients
202
- uses : actions/cache@v2
203
- with :
204
- path : /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-java-2/target
205
- key : ${{ runner.os }}-java-client-${{ hashFiles('**/pom.xml') }}
206
-
207
222
cts :
208
223
runs-on : ubuntu-20.04
209
224
needs :
0 commit comments