@@ -165,77 +165,77 @@ jobs:
165
165
<< : *js_defaults
166
166
steps :
167
167
- checkout
168
- - restore-cache : *cache_restore_yarn
168
+ - restore_cache : *cache_restore_yarn
169
169
- run :
170
170
name : Install dependencies
171
171
command : yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
172
- - save-cache : *cache_save_yarn
172
+ - save_cache : *cache_save_yarn
173
173
- persist_to_workspace :
174
174
root : .
175
175
paths : .
176
176
177
- " Test: lint " :
177
+ " Test lint " :
178
178
<< : *js_defaults
179
179
steps :
180
180
- *addWorkspace
181
181
- run :
182
182
name : Lint check
183
183
command : yarn test:lint
184
184
185
- " Test: flow " :
185
+ " Test flow " :
186
186
<< : *js_defaults
187
187
steps :
188
188
- *addWorkspace
189
189
- run :
190
190
name : Flow check
191
191
command : yarn test:flow
192
192
193
- " Test: Android unit " :
193
+ " Test Android unit " :
194
194
<< : *android_defaults
195
195
steps :
196
196
- *addWorkspace
197
- - restore-cache : *cache_restore_yarn
197
+ - restore_cache : *cache_restore_yarn
198
198
- run :
199
199
name : Installing Yarn dependencies
200
200
command : yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
201
- - save-cache : *cache_save_yarn
202
- - restore-cache : *cache_restore_gradle
201
+ - save_cache : *cache_save_yarn
202
+ - restore_cache : *cache_restore_gradle
203
203
- run :
204
204
name : Downloading Gradle dependencies
205
205
working_directory : example/android
206
206
command : ./gradlew --max-workers 2 fetchDependencies
207
- - save-cache : *cache_save_gradle
207
+ - save_cache : *cache_save_gradle
208
208
- run :
209
209
name : Next storage tests
210
210
working_directory : example/android
211
211
command : ./gradlew react-native-async-storage_async-storage:test
212
212
213
- " Test: iOS e2e " :
213
+ " Test iOS e2e " :
214
214
<< : *macos_defaults
215
215
steps :
216
216
- *addWorkspace
217
- - restore-cache : *cache_restore_brew_ios
217
+ - restore_cache : *cache_restore_brew_ios
218
218
- run :
219
219
name : Configure macOS Environment
220
220
command : |
221
221
brew bundle --file=.circleci/Brewfile.ios --no-lock
222
222
touch .watchmanconfig
223
223
echo Node $(node --version)
224
- - save-cache : *cache_save_brew_ios
225
- - restore-cache : *cache_restore_yarn
224
+ - save_cache : *cache_save_brew_ios
225
+ - restore_cache : *cache_restore_yarn
226
226
- run :
227
227
name : Installing Yarn dependencies
228
228
command : yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
229
- - save-cache : *cache_save_yarn
230
- - restore-cache : *cache_restore_pods
229
+ - save_cache : *cache_save_yarn
230
+ - restore_cache : *cache_restore_pods
231
231
- run :
232
232
name : Bundle JS
233
233
command : yarn bundle:ios --dev false
234
234
- run :
235
235
name : Install pod dependencies
236
236
working_directory : example/ios
237
237
command : pod install
238
- - save-cache : *cache_save_pods
238
+ - save_cache : *cache_save_pods
239
239
- run :
240
240
name : Boot simulator
241
241
background : true
@@ -247,7 +247,7 @@ jobs:
247
247
name : Run e2e tests
248
248
command : yarn test:e2e:ios
249
249
250
- " Build: Android release apk " :
250
+ " Build Android release apk " :
251
251
<< : *android_defaults
252
252
steps :
253
253
- *addWorkspace
@@ -266,18 +266,18 @@ jobs:
266
266
paths :
267
267
- example/android/app/build/outputs/apk/*
268
268
269
- " Test: Android e2e " :
269
+ " Test Android e2e " :
270
270
<< : *macos_defaults_android
271
271
steps :
272
272
- run_android_e2e :
273
273
testScript : " test:e2e:android"
274
274
275
- " Test: Android e2e Next " :
275
+ " Test Android e2e Next " :
276
276
<< : *macos_defaults_android
277
277
steps :
278
278
- run_android_e2e
279
279
280
- " Build: Prepare android e2e environment" :
280
+ " Prepare android e2e environment " :
281
281
<< : *macos_defaults_android
282
282
steps :
283
283
- *addWorkspace
@@ -290,13 +290,13 @@ jobs:
290
290
echo 'export QEMU_AUDIO_DRV=none' >> $BASH_ENV
291
291
echo 'export JAVA_HOME=$(/usr/libexec/java_home)' >> $BASH_ENV
292
292
source $BASH_ENV
293
- - restore-cache : *cache_restore_brew_android
293
+ - restore_cache : *cache_restore_brew_android
294
294
- run :
295
295
name : Install Android SDK tools
296
296
command : |
297
297
brew update --preinstall
298
298
brew bundle --file=.circleci/Brewfile.android --no-lock
299
- - save-cache : *cache_save_brew_android
299
+ - save_cache : *cache_save_brew_android
300
300
- run :
301
301
name : Install Android emulator
302
302
shell : /bin/bash -e
@@ -317,7 +317,9 @@ jobs:
317
317
-d "pixel"
318
318
- persist_to_workspace :
319
319
root : .
320
- paths : .
320
+ paths :
321
+ - /usr/local/share/android-sdk
322
+ - ~/.android
321
323
322
324
Release :
323
325
<< : *js_defaults
@@ -335,38 +337,38 @@ workflows:
335
337
" Testing " :
336
338
jobs :
337
339
- " Setup environment"
338
- - " Test: lint " :
340
+ - " Test lint " :
339
341
requires :
340
342
- " Setup environment"
341
- - " Test: flow " :
343
+ - " Test flow " :
342
344
requires :
343
345
- " Setup environment"
344
- - " Test: Android unit " :
346
+ - " Test Android unit " :
345
347
requires :
346
348
- " Setup environment"
347
- - " Test: iOS e2e " :
349
+ - " Test iOS e2e " :
348
350
requires :
349
- - " Test: lint"
350
- - " Test: flow"
351
- - " Build: Android release apk " :
351
+ - " Test lint"
352
+ - " Test flow"
353
+ - " Build Android release apk " :
352
354
requires :
353
- - " Test: lint"
354
- - " Test: flow"
355
- - " Test: Android unit"
356
- - " Build: Prepare android e2e environment" :
355
+ - " Test lint"
356
+ - " Test flow"
357
+ - " Test Android unit"
358
+ - " Prepare android e2e environment " :
357
359
requires :
358
- - " Build: Android release apk"
359
- - " Test: Android e2e " :
360
+ - " Build Android release apk"
361
+ - " Test Android e2e " :
360
362
requires :
361
- - " Build: Prepare android e2e environment"
362
- - " Test: Android e2e Next " :
363
+ - " Prepare android e2e environment"
364
+ - " Test Android e2e Next " :
363
365
requires :
364
- - " Build: Prepare android e2e environment"
366
+ - " Prepare android e2e environment"
365
367
- " Release " :
366
368
requires :
367
- - " Test: iOS e2e"
368
- - " Test: Android e2e"
369
- - " Test: Android e2e Next"
369
+ - " Test iOS e2e"
370
+ - " Test Android e2e"
371
+ - " Test Android e2e Next"
370
372
filters :
371
373
branches :
372
374
only : master
0 commit comments