@@ -159,6 +159,7 @@ jobs:
159
159
name : build-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix.platform }}-${{ matrix.ios_sdk }}
160
160
runs-on : ${{matrix.os}}
161
161
needs : check_and_prepare
162
+ if : ${{ needs.check_and_prepare.outputs.build_matrix != '' && !cancelled() }}
162
163
strategy :
163
164
fail-fast : false
164
165
matrix : ${{ fromJson(needs.check_and_prepare.outputs.build_matrix) }}
@@ -283,57 +284,57 @@ jobs:
283
284
retention-days : ${{ env.artifactRetentionDays }}
284
285
- name : Upload Android integration tests artifact
285
286
uses : actions/upload-artifact@v3
286
- if : contains(matrix.platform, 'Android') && ${{ !cancelled() }}
287
+ if : ${{ contains(matrix.platform, 'Android') && !cancelled() }}
287
288
with :
288
289
name : testapps-Android-${{ steps.matrix_info.outputs.artifact_suffix }}
289
290
path : testapps-${{ steps.matrix_info.outputs.info }}/Android
290
291
retention-days : ${{ env.artifactRetentionDays }}
291
292
- name : Delete Android integration tests artifact
292
- if : contains(matrix.platform, 'Android') && ${{ !cancelled() }}
293
+ if : ${{ contains(matrix.platform, 'Android') && !cancelled() }}
293
294
shell : bash
294
295
run : rm -rf testapps-${{ steps.matrix_info.outputs.info }}/Android || true
295
296
- name : Upload iOS integration tests artifact
296
297
uses : actions/upload-artifact@v3
297
- if : contains(matrix.platform, 'iOS') && ${{ !cancelled() }}
298
+ if : ${{ contains(matrix.platform, 'iOS') && !cancelled() }}
298
299
with :
299
300
name : testapps-iOS-${{ steps.matrix_info.outputs.artifact_suffix }}
300
301
path : testapps-${{ steps.matrix_info.outputs.info }}/iOS
301
302
retention-days : ${{ env.artifactRetentionDays }}
302
303
- name : Delete iOS integration tests artifact
303
- if : contains(matrix.platform, 'iOS') && ${{ !cancelled() }}
304
+ if : ${{ contains(matrix.platform, 'iOS') && !cancelled() }}
304
305
shell : bash
305
306
run : rm -rf testapps-${{ steps.matrix_info.outputs.info }}/iOS || true
306
307
- name : Upload Linux integration tests artifact
307
308
uses : actions/upload-artifact@v3
308
- if : contains(matrix.platform, 'Linux') && ${{ !cancelled() }}
309
+ if : ${{ contains(matrix.platform, 'Linux') && !cancelled() }}
309
310
with :
310
311
name : testapps-Linux-${{ steps.matrix_info.outputs.artifact_suffix }}
311
312
path : testapps-${{ steps.matrix_info.outputs.info }}/Linux
312
313
retention-days : ${{ env.artifactRetentionDays }}
313
314
- name : Delete Linux integration tests artifact
314
- if : contains(matrix.platform, 'Linux') && ${{ !cancelled() }}
315
+ if : ${{ contains(matrix.platform, 'Linux') && !cancelled() }}
315
316
shell : bash
316
317
run : rm -rf testapps-${{ steps.matrix_info.outputs.info }}/Linux || true
317
318
- name : Upload macOS integration tests artifact
318
319
uses : actions/upload-artifact@v3
319
- if : contains(matrix.platform, 'macOS') && ${{ !cancelled() }}
320
+ if : ${{ contains(matrix.platform, 'macOS') && !cancelled() }}
320
321
with :
321
322
name : testapps-macOS-${{ steps.matrix_info.outputs.artifact_suffix }}
322
323
path : testapps-${{ steps.matrix_info.outputs.info }}/macOS
323
324
retention-days : ${{ env.artifactRetentionDays }}
324
325
- name : Delete macOS integration tests artifact
325
- if : contains(matrix.platform, 'macOS') && ${{ !cancelled() }}
326
+ if : ${{ contains(matrix.platform, 'macOS') && !cancelled() }}
326
327
shell : bash
327
328
run : rm -rf testapps-${{ steps.matrix_info.outputs.info }}/macOS || true
328
329
- name : Upload Windows integration tests artifact
329
330
uses : actions/upload-artifact@v3
330
- if : contains(matrix.platform, 'Windows') && ${{ !cancelled() }}
331
+ if : ${{ contains(matrix.platform, 'Windows') && !cancelled() }}
331
332
with :
332
333
name : testapps-Windows-${{ steps.matrix_info.outputs.artifact_suffix }}
333
334
path : testapps-${{ steps.matrix_info.outputs.info }}/Windows
334
335
retention-days : ${{ env.artifactRetentionDays }}
335
336
- name : Delete Windows integration tests artifact
336
- if : contains(matrix.platform, 'Windows') && ${{ !cancelled() }}
337
+ if : ${{ contains(matrix.platform, 'Windows') && !cancelled() }}
337
338
shell : bash
338
339
run : rm -rf testapps-${{ steps.matrix_info.outputs.info }}/Windows || true
339
340
- name : Download log artifacts
@@ -365,6 +366,7 @@ jobs:
365
366
name : test-${{ matrix.unity_version }}-${{matrix.os}}-Playmode
366
367
runs-on : ${{matrix.os}}
367
368
needs : check_and_prepare
369
+ if : ${{ needs.check_and_prepare.outputs.playmode_matrix != '' && !cancelled() }}
368
370
strategy :
369
371
fail-fast : false
370
372
matrix : ${{ fromJson(needs.check_and_prepare.outputs.playmode_matrix) }}
@@ -499,7 +501,7 @@ jobs:
499
501
integration_test :
500
502
name : test-${{ matrix.unity_version }}-${{matrix.build_os}}-${{ matrix.platform }}-${{ matrix.test_device }}-${{ matrix.test_os }}
501
503
runs-on : ${{ matrix.test_os }}
502
- if : ${{ !cancelled() }}
504
+ if : ${{ needs.check_and_prepare.outputs.build_matrix != '' && needs.check_and_prepare.outputs.test_matrix != '' && !cancelled() }}
503
505
needs : [check_and_prepare, build_testapp]
504
506
strategy :
505
507
fail-fast : false
@@ -535,7 +537,7 @@ jobs:
535
537
- name : Run Mobile integration tests on real device via FTL
536
538
id : ftl_test
537
539
if : ${{ matrix.device_type == 'real' }}
538
- uses : FirebaseExtended/github-actions/firebase-test-lab@v1.1
540
+ uses : FirebaseExtended/github-actions/firebase-test-lab@v1.2
539
541
with :
540
542
credentials_json : ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
541
543
testapp_dir : testapps
0 commit comments