@@ -41,7 +41,7 @@ concurrency:
41
41
cancel-in-progress : ${{ github.ref_name != 'main'}}
42
42
43
43
jobs :
44
- unit-tests -without-coverage :
44
+ targets -without-coverage :
45
45
name : ${{ matrix.scheme }} Unit Tests
46
46
strategy :
47
47
fail-fast : false
54
54
scheme : ${{ matrix.scheme }}
55
55
generate_coverage_report : false
56
56
57
- unit-tests -with-coverage :
57
+ targets -with-coverage :
58
58
name : ${{ matrix.scheme }} Unit Tests
59
59
strategy :
60
60
fail-fast : false
@@ -76,40 +76,41 @@ jobs:
76
76
uses : ./.github/workflows/run_unit_tests_platforms.yml
77
77
with :
78
78
scheme : ${{ matrix.scheme }}
79
- generate_coverage_report : true
79
+ generate_coverage_report : ${{ vars.DISABLE_COVERAGE_REPORT != ' true' }}
80
80
81
- # report-coverage:
82
- # name: ${{ matrix.file.scheme }} Unit Tests
83
- # needs: [unit-tests-with-coverage]
84
- # strategy:
85
- # fail-fast: false
86
- # matrix:
87
- # file: [
88
- # { scheme: Amplify, flags: 'Amplify,unit_tests' },
89
- # { scheme: AWSPluginsCore, flags: 'AWSPluginsCore,unit_tests' },
90
- # { scheme: AWSAPIPlugin, flags: 'API_plugin_unit_test,unit_tests' },
91
- # { scheme: AWSCloudWatchLoggingPlugin, flags: 'Logging_plugin_unit_test,unit_tests' },
92
- # { scheme: AWSCognitoAuthPlugin, flags: 'Auth_plugin_unit_test,unit_tests' },
93
- # { scheme: AWSDataStorePlugin, flags: 'DataStore_plugin_unit_test,unit_tests' },
94
- # { scheme: AWSLocationGeoPlugin, flags: 'Geo_plugin_unit_test,unit_tests' },
95
- # { scheme: AWSPredictionsPlugin, flags: 'Predictions_plugin_unit_test,unit_tests' },
96
- # { scheme: AWSPinpointAnalyticsPlugin, flags: 'Analytics_plugin_unit_test,unit_tests' },
97
- # { scheme: AWSPinpointPushNotificationsPlugin, flags: 'PushNotifications_plugin_unit_test,unit_tests' },
98
- # { scheme: AWSS3StoragePlugin, flags: 'Storage_plugin_unit_test,unit_tests' },
99
- # { scheme: CoreMLPredictionsPlugin, flags: 'CoreMLPredictions_plugin_unit_test,unit_tests' }
100
- # ]
101
- # uses: ./.github/workflows/upload_coverage_report.yml
102
- # with:
103
- # scheme: ${{ matrix.file.scheme }}
104
- # flags: ${{ matrix.file.flags }}
81
+ report-coverage :
82
+ if : ${{ vars.DISABLE_COVERAGE_REPORT != 'true' }}
83
+ name : ${{ matrix.file.scheme }} Unit Tests
84
+ needs : [targets-with-coverage]
85
+ strategy :
86
+ fail-fast : false
87
+ matrix :
88
+ file : [
89
+ { scheme: Amplify, flags: 'Amplify,unit_tests' },
90
+ { scheme: AWSPluginsCore, flags: 'AWSPluginsCore,unit_tests' },
91
+ { scheme: AWSAPIPlugin, flags: 'API_plugin_unit_test,unit_tests' },
92
+ { scheme: AWSCloudWatchLoggingPlugin, flags: 'Logging_plugin_unit_test,unit_tests' },
93
+ { scheme: AWSCognitoAuthPlugin, flags: 'Auth_plugin_unit_test,unit_tests' },
94
+ { scheme: AWSDataStorePlugin, flags: 'DataStore_plugin_unit_test,unit_tests' },
95
+ { scheme: AWSLocationGeoPlugin, flags: 'Geo_plugin_unit_test,unit_tests' },
96
+ { scheme: AWSPredictionsPlugin, flags: 'Predictions_plugin_unit_test,unit_tests' },
97
+ { scheme: AWSPinpointAnalyticsPlugin, flags: 'Analytics_plugin_unit_test,unit_tests' },
98
+ { scheme: AWSPinpointPushNotificationsPlugin, flags: 'PushNotifications_plugin_unit_test,unit_tests' },
99
+ { scheme: AWSS3StoragePlugin, flags: 'Storage_plugin_unit_test,unit_tests' },
100
+ { scheme: CoreMLPredictionsPlugin, flags: 'CoreMLPredictions_plugin_unit_test,unit_tests' }
101
+ ]
102
+ uses : ./.github/workflows/upload_coverage_report.yml
103
+ with :
104
+ scheme : ${{ matrix.file.scheme }}
105
+ flags : ${{ matrix.file.flags }}
105
106
106
107
unit-test-pass-confirmation :
107
108
runs-on : ubuntu-latest
108
109
name : Confirm Passing Unit Tests
109
110
if : ${{ !cancelled() }}
110
111
needs : [
111
- unit-tests -with-coverage,
112
- unit-tests -without-coverage
112
+ targets -with-coverage,
113
+ targets -without-coverage
113
114
]
114
115
env :
115
116
EXIT_CODE : ${{ contains(needs.*.result, 'failure') && 1 || 0 }}
0 commit comments