@@ -26,29 +26,53 @@ jobs:
26
26
uses : ./.github/workflows/run_xcodebuild_test_platforms.yml
27
27
with :
28
28
scheme : ${{ matrix.scheme }}
29
- submit_coverage_report : false
29
+ generate_coverage_report : false
30
30
31
31
unit-tests-with-coverage :
32
- name : ${{ matrix.scheme.name }} Unit Tests
32
+ name : ${{ matrix.scheme }} Unit Tests
33
33
strategy :
34
34
fail-fast : false
35
35
matrix :
36
36
scheme : [
37
- { name: Amplify, flags: 'Amplify,unit_tests' } ,
38
- { name: AWSPluginsCore, flags: 'AWSPluginsCore,unit_tests' } ,
39
- { name: AWSAPIPlugin, flags: 'API_plugin_unit_test,unit_tests' } ,
40
- { name: AWSCloudWatchLoggingPlugin, flags: 'Logging_plugin_unit_test,unit_tests' } ,
41
- { name: AWSCognitoAuthPlugin, flags: 'Auth_plugin_unit_test,unit_tests' } ,
42
- { name: AWSDataStorePlugin, flags: 'DataStore_plugin_unit_test,unit_tests' } ,
43
- { name: AWSLocationGeoPlugin, flags: 'Geo_plugin_unit_test,unit_tests' } ,
44
- { name: AWSPredictionsPlugin, flags: 'Predictions_plugin_unit_test,unit_tests' } ,
45
- { name: AWSPinpointAnalyticsPlugin, flags: 'Analytics_plugin_unit_test,unit_tests' } ,
46
- { name: AWSPinpointPushNotificationsPlugin, flags: 'PushNotifications_plugin_unit_test,unit_tests' } ,
47
- { name: AWSS3StoragePlugin, flags: 'Storage_plugin_unit_test,unit_tests' } ,
48
- { name: CoreMLPredictionsPlugin, flags: 'CoreMLPredictions_plugin_unit_test,unit_tests' }
37
+ Amplify,
38
+ AWSPluginsCore,
39
+ AWSAPIPlugin,
40
+ AWSCloudWatchLoggingPlugin,
41
+ AWSCognitoAuthPlugin,
42
+ AWSDataStorePlugin,
43
+ AWSLocationGeoPlugin,
44
+ AWSPredictionsPlugin,
45
+ AWSPinpointAnalyticsPlugin,
46
+ AWSPinpointPushNotificationsPlugin,
47
+ AWSS3StoragePlugin,
48
+ CoreMLPredictionsPlugin
49
49
]
50
50
uses : ./.github/workflows/run_xcodebuild_test_platforms.yml
51
51
with :
52
- scheme : ${{ matrix.scheme.name }}
53
- submit_coverage_report : true
54
- coverage_flags : ${{ matrix.scheme.flags }}
52
+ scheme : ${{ matrix.scheme }}
53
+ generate_coverage_report : true
54
+
55
+ report-coverage :
56
+ name : ${{ matrix.file.scheme }} Coverage Report
57
+ needs : [unit-tests-with-coverage]
58
+ strategy :
59
+ fail-fast : false
60
+ matrix :
61
+ file : [
62
+ { scheme: Amplify, flags: 'Amplify,unit_tests' },
63
+ { scheme: AWSPluginsCore, flags: 'AWSPluginsCore,unit_tests' },
64
+ { scheme: AWSAPIPlugin, flags: 'API_plugin_unit_test,unit_tests' },
65
+ { scheme: AWSCloudWatchLoggingPlugin, flags: 'Logging_plugin_unit_test,unit_tests' },
66
+ { scheme: AWSCognitoAuthPlugin, flags: 'Auth_plugin_unit_test,unit_tests' },
67
+ { scheme: AWSDataStorePlugin, flags: 'DataStore_plugin_unit_test,unit_tests' },
68
+ { scheme: AWSLocationGeoPlugin, flags: 'Geo_plugin_unit_test,unit_tests' },
69
+ { scheme: AWSPredictionsPlugin, flags: 'Predictions_plugin_unit_test,unit_tests' },
70
+ { scheme: AWSPinpointAnalyticsPlugin, flags: 'Analytics_plugin_unit_test,unit_tests' },
71
+ { scheme: AWSPinpointPushNotificationsPlugin, flags: 'PushNotifications_plugin_unit_test,unit_tests' },
72
+ { scheme: AWSS3StoragePlugin, flags: 'Storage_plugin_unit_test,unit_tests' },
73
+ { scheme: CoreMLPredictionsPlugin, flags: 'CoreMLPredictions_plugin_unit_test,unit_tests' }
74
+ ]
75
+ uses : ./.github/workflows/upload_coverage_report.yml
76
+ with :
77
+ scheme : ${{ matrix.file.scheme }}
78
+ flags : ${{ matrix.file.flags }}
0 commit comments