Skip to content

Commit 8df9c42

Browse files
authored
Workflow enable integration test on virtual mobile devices
1 parent 64c518c commit 8df9c42

File tree

42 files changed

+2468
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2468
-11
lines changed

.github/workflows/integration_tests.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
run: |
146146
pip install -r scripts/gha/requirements.txt
147147
- name: Install Unity
148-
timeout-minutes: 20
148+
timeout-minutes: 30
149149
shell: bash
150150
run: |
151151
python scripts/gha/unity_installer.py --install \
@@ -289,14 +289,15 @@ jobs:
289289
fi
290290
291291
test_mobile:
292-
name: test-${{ matrix.unity_version }}-${{ matrix.platform }}
293-
runs-on: macos-latest
292+
name: test-${{ matrix.unity_version }}-${{ matrix.platform }}-${{ matrix.mobile_test_on }}
293+
runs-on: macos-11
294294
if: (contains(needs.check_and_prepare.outputs.platform, 'Android') || contains(needs.check_and_prepare.outputs.platform, 'iOS')) && !cancelled()
295295
needs: [check_and_prepare, build]
296296
strategy:
297297
fail-fast: false
298298
matrix:
299299
platform: [Android, iOS]
300+
mobile_test_on: [real, virtual]
300301
unity_version: ${{ fromJson(needs.check_and_prepare.outputs.matrix_unity_versions) }}
301302
steps:
302303
- uses: actions/checkout@v2
@@ -317,8 +318,10 @@ jobs:
317318
run: |
318319
pip install -r scripts/gha/requirements.txt
319320
- name: Install Cloud SDK
321+
if: matrix.mobile_test_on == 'real'
320322
uses: google-github-actions/setup-gcloud@master
321-
- name: Run Monbile integration tests on Real Device via FTL
323+
- name: Run Mobile integration tests on Real Device via FTL
324+
if: matrix.mobile_test_on == 'real'
322325
timeout-minutes: 60
323326
shell: bash
324327
run: |
@@ -327,6 +330,13 @@ jobs:
327330
--logfile_name "${{ matrix.unity_version }}-${{ matrix.platform }}" \
328331
--code_platform unity \
329332
--key_file scripts/gha-encrypted/gcs_key_file.json
333+
- name: Run Mobile integration tests on virtual device locally
334+
timeout-minutes: 60
335+
if: matrix.mobile_test_on == 'virtual'
336+
run: |
337+
python scripts/gha/test_simulator.py --testapp_dir testapps \
338+
--logfile_name "${{ matrix.unity_version }}-${{ matrix.platform }}" \
339+
--ci
330340
- name: Summarize test results
331341
if: ${{ !cancelled() }}
332342
shell: bash

analytics/testapp/ProjectSettings/ProjectSettings.asset

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ PlayerSettings:
159159
androidMaxAspectRatio: 2.1
160160
applicationIdentifier:
161161
Android: com.google.firebase.unity.analytics.testapp
162-
Standalone: unity.Google.Firebase Analytics Unity Testapp
162+
Standalone: com.google.firebase.unity.analytics.testapp
163163
Tizen: com.google.firebase.unity.analytics.testapp
164164
iOS: com.google.firebase.unity.analytics.testapp
165+
iPhone: com.google.firebase.unity.analytics.testapp
165166
tvOS: com.google.firebase.unity.analytics.testapp
166167
buildNumber:
167168
iOS: 0

auth/testapp/ProjectSettings/ProjectSettings.asset

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,16 @@ PlayerSettings:
159159
androidMaxAspectRatio: 2.1
160160
applicationIdentifier:
161161
Android: com.google.FirebaseUnityAuthTestApp.dev
162-
Standalone: unity.Google.Firebase Auth Unity Testapp
162+
Standalone: com.google.FirebaseUnityAuthTestApp.dev
163163
Tizen: com.google.FirebaseUnityAuthTestApp.dev
164164
iOS: com.google.FirebaseUnityAuthTestApp.dev
165+
iPhone: com.google.FirebaseUnityAuthTestApp.dev
165166
tvOS: com.google.FirebaseUnityAuthTestApp.dev
166167
buildNumber:
168+
Standalone: 0
167169
iOS: 0
170+
iPhone: 0
171+
tvOS: 0
168172
AndroidBundleVersionCode: 1
169173
AndroidMinSdkVersion: 26
170174
AndroidTargetSdkVersion: 0

crashlytics/testapp/ProjectSettings/ProjectSettings.asset

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,16 @@ PlayerSettings:
159159
androidMaxAspectRatio: 2.1
160160
applicationIdentifier:
161161
Android: com.google.firebase.unity.crashlytics.testapp
162-
Standalone: unity.Google.Crashlytics for Firebase Unity Testapp
162+
Standalone: com.google.firebase.unity.crashlytics.testapp
163163
Tizen: com.google.firebase.unity.crashlytics.testapp
164164
iOS: com.google.firebase.unity.crashlytics.testapp
165+
iPhone: com.google.firebase.unity.crashlytics.testapp
165166
tvOS: com.google.firebase.unity.crashlytics.testapp
166167
buildNumber:
168+
Standalone: 0
167169
iOS: 0
170+
iPhone: 0
171+
tvOS: 0
168172
AndroidBundleVersionCode: 1
169173
AndroidMinSdkVersion: 26
170174
AndroidTargetSdkVersion: 0

database/testapp/ProjectSettings/ProjectSettings.asset

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,16 @@ PlayerSettings:
159159
androidMaxAspectRatio: 2.1
160160
applicationIdentifier:
161161
Android: com.google.firebase.unity.database.testapp
162-
Standalone: unity.Google.Firebase Database Unity Testapp
162+
Standalone: com.google.firebase.unity.database.testapp
163163
Tizen: com.google.firebase.unity.database.testapp
164164
iOS: com.google.firebase.unity.database.testapp
165+
iPhone: com.google.firebase.unity.database.testapp
165166
tvOS: com.google.firebase.unity.database.testapp
166167
buildNumber:
168+
Standalone: 0
167169
iOS: 0
170+
iPhone: 0
171+
tvOS: 0
168172
AndroidBundleVersionCode: 1
169173
AndroidMinSdkVersion: 26
170174
AndroidTargetSdkVersion: 0

dynamic_links/testapp/ProjectSettings/ProjectSettings.asset

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,16 @@ PlayerSettings:
159159
androidMaxAspectRatio: 2.1
160160
applicationIdentifier:
161161
Android: com.google.FirebaseUnityDynamicLinksTestApp.dev
162-
Standalone: unity.Google.Firebase Dynamic Links Unity Testapp
162+
Standalone: com.google.FirebaseUnityDynamicLinksTestApp.dev
163163
Tizen: com.google.FirebaseUnityDynamicLinksTestApp.dev
164164
iOS: com.google.FirebaseUnityDynamicLinksTestApp.dev
165+
iPhone: com.google.FirebaseUnityDynamicLinksTestApp.dev
165166
tvOS: com.google.FirebaseUnityDynamicLinksTestApp.dev
166167
buildNumber:
168+
Standalone: 0
167169
iOS: 0
170+
iPhone: 0
171+
tvOS: 0
168172
AndroidBundleVersionCode: 1
169173
AndroidMinSdkVersion: 26
170174
AndroidTargetSdkVersion: 0

firestore/testapp/ProjectSettings/ProjectSettings.asset

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,16 @@ PlayerSettings:
159159
androidMaxAspectRatio: 2.1
160160
applicationIdentifier:
161161
Android: com.google.firebase.firestore.unity.testapp
162-
Standalone: unity.Google.Cloud Firestore for Firebase Unity Testapp
162+
Standalone: com.google.firebase.firestore.unity.testapp
163163
Tizen: com.google.firebase.firestore.unity.testapp
164164
iOS: com.google.firebase.firestore.unity.testapp
165+
iPhone: com.google.firebase.firestore.unity.testapp
165166
tvOS: com.google.firebase.firestore.unity.testapp
166167
buildNumber:
168+
Standalone: 0
167169
iOS: 0
170+
iPhone: 0
171+
tvOS: 0
168172
AndroidBundleVersionCode: 1
169173
AndroidMinSdkVersion: 26
170174
AndroidTargetSdkVersion: 0

functions/testapp/ProjectSettings/ProjectSettings.asset

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,16 @@ PlayerSettings:
159159
androidMaxAspectRatio: 2.1
160160
applicationIdentifier:
161161
Android: com.google.firebase.unity.functions.testapp
162-
Standalone: unity.Google.Cloud Functions for Firebase Unity Testapp
162+
Standalone: com.google.firebase.unity.functions.testapp
163163
Tizen: com.google.firebase.unity.functions.testapp
164164
iOS: com.google.firebase.unity.functions.testapp
165+
iPhone: com.google.firebase.unity.functions.testapp
165166
tvOS: com.google.firebase.unity.functions.testapp
166167
buildNumber:
168+
Standalone: 0
167169
iOS: 0
170+
iPhone: 0
171+
tvOS: 0
168172
AndroidBundleVersionCode: 1
169173
AndroidMinSdkVersion: 26
170174
AndroidTargetSdkVersion: 0

installations/testapp/ProjectSettings/ProjectSettings.asset

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@ PlayerSettings:
9595
16:9: 1
9696
Others: 1
9797
bundleIdentifier: com.google.firebase.unity.installations.testapp
98+
applicationIdentifier:
99+
Android: com.google.firebase.unity.installations.testapp
100+
Standalone: com.google.firebase.unity.installations.testapp
101+
Tizen: com.google.firebase.unity.installations.testapp
102+
iOS: com.google.firebase.unity.installations.testapp
103+
iPhone: com.google.firebase.unity.installations.testapp
104+
tvOS: com.google.firebase.unity.installations.testapp
105+
buildNumber:
106+
Standalone: 0
107+
iOS: 0
108+
iPhone: 0
109+
tvOS: 0
98110
bundleVersion: 1.0
99111
preloadedAssets: []
100112
metroEnableIndependentInputSource: 0

messaging/testapp/ProjectSettings/ProjectSettings.asset

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@ PlayerSettings:
9595
16:9: 1
9696
Others: 1
9797
bundleIdentifier: com.google.FirebaseUnityMessagingTestApp.dev
98+
applicationIdentifier:
99+
Android: com.google.FirebaseUnityMessagingTestApp.dev
100+
Standalone: com.google.FirebaseUnityMessagingTestApp.dev
101+
Tizen: com.google.FirebaseUnityMessagingTestApp.dev
102+
iOS: com.google.FirebaseUnityMessagingTestApp.dev
103+
iPhone: com.google.FirebaseUnityMessagingTestApp.dev
104+
tvOS: com.google.FirebaseUnityMessagingTestApp.dev
105+
buildNumber:
106+
Standalone: 0
107+
iOS: 0
108+
iPhone: 0
109+
tvOS: 0
98110
bundleVersion: 1.0
99111
preloadedAssets: []
100112
metroEnableIndependentInputSource: 0

0 commit comments

Comments
 (0)