@@ -739,8 +739,12 @@ jobs:
739
739
with :
740
740
node-version : 14.x
741
741
- name : Setup Firestore Emulator
742
- run : |
743
- npm install -g firebase-tools
742
+ uses : nick-invision/retry@v2
743
+ with :
744
+ shell : bash
745
+ timeout_minutes : 5
746
+ max_attempts : 3
747
+ command : npm install -g firebase-tools
744
748
- name : Setup java
745
749
uses : actions/setup-java@v3
746
750
with :
@@ -997,9 +1001,16 @@ jobs:
997
1001
distribution : ' temurin'
998
1002
java-version : ' 17'
999
1003
- name : Setup Firestore Emulator
1004
+ if : steps.get-device-type.outputs.device_type == 'virtual' && contains(needs.check_and_prepare.outputs.apis, 'firestore')
1005
+ uses : nick-invision/retry@v2
1006
+ with :
1007
+ shell : bash
1008
+ timeout_minutes : 5
1009
+ max_attempts : 3
1010
+ command : npm install -g firebase-tools
1011
+ - name : Start Firestore Emulator
1000
1012
if : steps.get-device-type.outputs.device_type == 'virtual' && contains(needs.check_and_prepare.outputs.apis, 'firestore')
1001
1013
run : |
1002
- npm install -g firebase-tools
1003
1014
firebase emulators:start --only firestore --project demo-example &
1004
1015
- name : Setup java 8 for test_simulator.py
1005
1016
uses : actions/setup-java@v3
@@ -1132,9 +1143,16 @@ jobs:
1132
1143
distribution : ' temurin'
1133
1144
java-version : ' 17'
1134
1145
- name : Setup Firestore Emulator
1146
+ if : steps.get-device-type.outputs.device_type == 'virtual' && contains(needs.check_and_prepare.outputs.apis, 'firestore')
1147
+ uses : nick-invision/retry@v2
1148
+ with :
1149
+ shell : bash
1150
+ timeout_minutes : 5
1151
+ max_attempts : 3
1152
+ command : npm install -g firebase-tools
1153
+ - name : Start Firestore Emulator
1135
1154
if : steps.get-device-type.outputs.device_type == 'virtual' && contains(needs.check_and_prepare.outputs.apis, 'firestore')
1136
1155
run : |
1137
- npm install -g firebase-tools
1138
1156
firebase emulators:start --only firestore --project demo-example &
1139
1157
- name : Run iOS integration tests on Simulator locally
1140
1158
timeout-minutes : 120
@@ -1241,9 +1259,16 @@ jobs:
1241
1259
distribution : ' temurin'
1242
1260
java-version : ' 17'
1243
1261
- name : Setup Firestore Emulator
1262
+ if : contains(needs.check_and_prepare.outputs.apis, 'firestore')
1263
+ uses : nick-invision/retry@v2
1264
+ with :
1265
+ shell : bash
1266
+ timeout_minutes : 5
1267
+ max_attempts : 3
1268
+ command : npm install -g firebase-tools
1269
+ - name : Start Firestore Emulator
1244
1270
if : contains(needs.check_and_prepare.outputs.apis, 'firestore')
1245
1271
run : |
1246
- npm install -g firebase-tools
1247
1272
firebase emulators:start --only firestore --project demo-example &
1248
1273
- name : Run tvOS integration tests on Simulator locally
1249
1274
timeout-minutes : 90
0 commit comments