Store test artifacts for Android (#37269)

Summary:
We should store XML datas from the test we execute so when they fail it's easier to immediately see which test caused the failure.

## Changelog:

[INTERNAL] - Store test artifacts for Android

Pull Request resolved: https://github.com/facebook/react-native/pull/37269

Test Plan: Wait for CI results

Reviewed By: cipolleschi

Differential Revision: D45603973

Pulled By: cortinico

fbshipit-source-id: e818b353816e10b3e4ed16bdb66dd4c8918a9c51
This commit is contained in:
Nicola Corti 2023-05-05 07:01:00 -07:00 коммит произвёл Facebook GitHub Bot
Родитель a3b57f6cb0
Коммит 758b74094b
1 изменённых файлов: 7 добавлений и 14 удалений

Просмотреть файл

@ -724,10 +724,6 @@ jobs:
# -------------------------
test_android:
executor: reactnativeandroid
parameters:
run_disabled_tests:
type: boolean
default: false
steps:
- checkout
- setup_artifacts
@ -741,18 +737,16 @@ jobs:
- report_bundle_size:
platform: android
- store_test_results:
path: ~/react-native/packages/react-native-gradle-plugin/build/test-results
- store_test_results:
path: ~/react-native/packages/react-native/ReactAndroid/build/test-results
- store_artifacts:
path: ~/react-native/packages/rn-tester/android/app/build/outputs/apk/
destination: rntester-apk
# Optionally, run disabled tests
- when:
condition: << parameters.run_disabled_tests >>
steps:
- run: echo "Failing tests may be moved here temporarily."
- run_e2e:
platform: android
# -------------------------
# JOBS: Test Android Docker Image
# -------------------------
@ -1602,8 +1596,7 @@ workflows:
- build_hermesc_windows
- test_js:
run_disabled_tests: false
- test_android:
run_disabled_tests: false
- test_android
- test_android_docker_image
- test_android_template:
requires: