@@ -302,14 +302,14 @@ jobs:
302
302
echo "__SUMMARY_MISSING__" > build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix.platform }}.log.json
303
303
fi
304
304
- name : Upload build results artifact
305
- uses : actions/upload-artifact@v2.2.2
305
+ uses : actions/upload-artifact@v3
306
306
if : ${{ !cancelled() }}
307
307
with :
308
308
name : log-artifact
309
309
path : build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix.platform }}*
310
310
retention-days : ${{ env.artifactRetentionDays }}
311
311
- name : Upload Android integration tests artifact
312
- uses : actions/upload-artifact@v2.2.2
312
+ uses : actions/upload-artifact@v3
313
313
if : contains(matrix.platform, 'Android') && ${{ !cancelled() }}
314
314
with :
315
315
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-Android
@@ -320,7 +320,7 @@ jobs:
320
320
shell : bash
321
321
run : rm -rf testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs.platform }}/Android || true
322
322
- name : Upload iOS integration tests artifact
323
- uses : actions/upload-artifact@v2.2.2
323
+ uses : actions/upload-artifact@v3
324
324
if : contains(matrix.platform, 'iOS') && ${{ !cancelled() }}
325
325
with :
326
326
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-iOS
@@ -331,7 +331,7 @@ jobs:
331
331
shell : bash
332
332
run : rm -rf testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs.platform }}/iOS || true
333
333
- name : Upload Linux integration tests artifact
334
- uses : actions/upload-artifact@v2.2.2
334
+ uses : actions/upload-artifact@v3
335
335
if : contains(matrix.platform, 'Linux') && ${{ !cancelled() }}
336
336
with :
337
337
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-ubuntu-latest
@@ -342,7 +342,7 @@ jobs:
342
342
shell : bash
343
343
run : rm -rf testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs.platform }}/Linux || true
344
344
- name : Upload macOS integration tests artifact
345
- uses : actions/upload-artifact@v2.2.2
345
+ uses : actions/upload-artifact@v3
346
346
if : contains(matrix.platform, 'macOS') && ${{ !cancelled() }}
347
347
with :
348
348
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-macos-latest
@@ -353,7 +353,7 @@ jobs:
353
353
shell : bash
354
354
run : rm -rf testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs.platform }}/macOS || true
355
355
- name : Upload Windows integration tests artifact
356
- uses : actions/upload-artifact@v2.2.2
356
+ uses : actions/upload-artifact@v3
357
357
if : contains(matrix.platform, 'Windows') && ${{ !cancelled() }}
358
358
with :
359
359
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-windows-latest
@@ -365,7 +365,7 @@ jobs:
365
365
run : rm -rf testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs.platform }}/Windows || true
366
366
- name : Download log artifacts
367
367
if : ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
368
- uses : actions/download-artifact@v2.0.8
368
+ uses : actions/download-artifact@v3
369
369
with :
370
370
path : test_results
371
371
name : log-artifact
@@ -405,7 +405,7 @@ jobs:
405
405
with :
406
406
ref : ${{needs.check_and_prepare.outputs.github_ref}}
407
407
- name : Download Desktop integration tests artifact
408
- uses : actions/download-artifact@v2.0.8
408
+ uses : actions/download-artifact@v3
409
409
with :
410
410
path : testapps
411
411
name : testapps-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.os }}
@@ -428,19 +428,20 @@ jobs:
428
428
if : ${{ !cancelled() }}
429
429
shell : bash
430
430
run : |
431
- if [ ! -f testapps/test-results-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.os }}-desktop.log.json ]; then
431
+ # If testapps do not exist, then it's a build error not test error.
432
+ if [ -d "testapps/testapps-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.os }}" && ! -f testapps/test-results-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.os }}-desktop.log.json ]; then
432
433
mkdir -p testapps && echo "__SUMMARY_MISSING__" > testapps/test-results-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.os }}-desktop.log.json
433
434
fi
434
435
- name : Upload Desktop test results artifact
435
436
if : ${{ !cancelled() }}
436
- uses : actions/upload-artifact@v2.2.2
437
+ uses : actions/upload-artifact@v3
437
438
with :
438
439
name : log-artifact
439
440
path : testapps/test-results-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.os }}-desktop*
440
441
retention-days : ${{ env.artifactRetentionDays }}
441
442
- name : Download log artifacts
442
443
if : ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
443
- uses : actions/download-artifact@v2.0.8
444
+ uses : actions/download-artifact@v3
444
445
with :
445
446
path : test_results
446
447
name : log-artifact
@@ -492,7 +493,7 @@ jobs:
492
493
echo "::set-output name=device_type::$( python scripts/gha/print_matrix_configuration.py -k ${{ matrix.mobile_device }} -get_device_type)"
493
494
echo "::set-output name=device_platform::$( python scripts/gha/print_matrix_configuration.py -k ${{ matrix.mobile_device }} -get_device_platform)"
494
495
- name : Download Desktop integration tests artifact
495
- uses : actions/download-artifact@v2.0.8
496
+ uses : actions/download-artifact@v3
496
497
with :
497
498
path : testapps
498
499
name : testapps-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ steps.device-info.outputs.device_platform }}
@@ -524,19 +525,20 @@ jobs:
524
525
if : ${{ !cancelled() }}
525
526
shell : bash
526
527
run : |
527
- if [ ! -f testapps/test-results-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.mobile_device }}-mobile.log.json ]; then
528
+ # If testapps do not exist, then it's a build error not test error.
529
+ if [ -d "testapps/testapps-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ steps.device-info.outputs.device_platform }}" && ! -f testapps/test-results-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.mobile_device }}-mobile.log.json ]; then
528
530
mkdir -p testapps && echo "__SUMMARY_MISSING__" > testapps/test-results-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.mobile_device }}-mobile.log.json
529
531
fi
530
532
- name : Upload Mobile test results artifact
531
533
if : ${{ !cancelled() }}
532
- uses : actions/upload-artifact@v2.2.2
534
+ uses : actions/upload-artifact@v3
533
535
with :
534
536
name : log-artifact
535
537
path : testapps/test-results-${{ matrix.unity_version }}-${{ matrix.build_os }}-${{ matrix.mobile_device }}-mobile*
536
538
retention-days : ${{ env.artifactRetentionDays }}
537
539
- name : Download log artifacts
538
540
if : ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
539
- uses : actions/download-artifact@v2.0.8
541
+ uses : actions/download-artifact@v3
540
542
with :
541
543
path : test_results
542
544
name : log-artifact
@@ -575,7 +577,7 @@ jobs:
575
577
- name : Install python deps
576
578
run : pip install -r scripts/gha/requirements.txt
577
579
- name : Download log artifacts
578
- uses : actions/download-artifact@v2.0.8
580
+ uses : actions/download-artifact@v3
579
581
with :
580
582
path : test_results
581
583
name : log-artifact
@@ -600,16 +602,10 @@ jobs:
600
602
- name : Update Daily Report
601
603
if : needs.check_and_prepare.outputs.trigger == 'scheduled_trigger'
602
604
run : |
603
- if [[ "${{ github.event.inputs.test_pull_request }}" == "nightly-packaging" ]]; then
604
- additional_flags=(--build_against sdk)
605
- else
606
- additional_flags=(--build_against repo)
607
- fi
608
605
python scripts/gha/it_workflow.py --stage report \
609
606
--token ${{github.token}} \
610
607
--actor ${{github.actor}} \
611
608
--commit ${{needs.check_and_prepare.outputs.github_ref}} \
612
- --run_id ${{github.run_id}} \
613
- ${additional_flags[*]}
609
+ --run_id ${{github.run_id}}
614
610
- name : Summarize results into GitHub log
615
611
run : python scripts/gha/summarize_test_results.py --dir test_results --github_log
0 commit comments