@@ -801,9 +801,15 @@ jobs:
801
801
pip install -r scripts/gha/requirements.txt
802
802
python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}" --artifact testapps
803
803
- name : Run Desktop integration tests
804
- run : firebase emulators:exec --only firestore --project demo-example 'python scripts/gha/desktop_tester.py --testapp_dir testapps --logfile_name "desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}"'
805
804
env :
806
805
USE_FIRESTORE_EMULATOR : true
806
+ shell : bash
807
+ run : |
808
+ if [[ "${{ needs.check_and_prepare.outputs.apis }}" == *"firestore"* ]]; then
809
+ firebase emulators:exec --only firestore --project demo-example 'python scripts/gha/desktop_tester.py --testapp_dir testapps --logfile_name "desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}"'
810
+ else
811
+ python scripts/gha/desktop_tester.py --testapp_dir testapps --logfile_name "desktop-${{ matrix.os }}-${{ matrix.ssl_variant }}"
812
+ fi
807
813
- name : Prepare results summary artifact
808
814
if : ${{ !cancelled() }}
809
815
shell : bash
@@ -883,7 +889,7 @@ jobs:
883
889
with :
884
890
node-version : 12.x
885
891
- name : Setup Firestore Emulator
886
- if : steps.get-device-type.outputs.device_type == 'virtual'
892
+ if : steps.get-device-type.outputs.device_type == 'virtual' && contains(needs.check_and_prepare.outputs.apis, 'firestore')
887
893
run : |
888
894
npm install -g firebase-tools
889
895
firebase emulators:start --only firestore --project demo-example &
@@ -985,12 +991,12 @@ jobs:
985
991
with :
986
992
node-version : 12.x
987
993
- name : Setup Firestore Emulator
988
- if : steps.get-device-type.outputs.device_type == 'virtual'
994
+ if : steps.get-device-type.outputs.device_type == 'virtual' && contains(needs.check_and_prepare.outputs.apis, 'firestore')
989
995
run : |
990
996
npm install -g firebase-tools
991
997
firebase emulators:start --only firestore --project demo-example &
992
998
- name : Run iOS integration tests on Simulator locally
993
- timeout-minutes : 60
999
+ timeout-minutes : 90
994
1000
if : steps.get-device-type.outputs.device_type == 'virtual'
995
1001
run : |
996
1002
python scripts/gha/test_simulator.py --testapp_dir testapps \
@@ -1080,7 +1086,8 @@ jobs:
1080
1086
timeout_minutes : 1
1081
1087
max_attempts : 3
1082
1088
command : pip install -r scripts/gha/requirements.txt
1083
- - name : Setup Firebase Emulators
1089
+ - name : Setup Firestore Emulator
1090
+ if : contains(needs.check_and_prepare.outputs.apis, 'firestore')
1084
1091
run : |
1085
1092
npm install -g firebase-tools
1086
1093
firebase emulators:start --only firestore --project demo-example &
0 commit comments