@@ -113,6 +113,10 @@ jobs:
113
113
if : ${{ matrix.command == 'except_metadata_ingestion' && needs.setup.outputs.backend_change == 'true' }}
114
114
run : |
115
115
./gradlew -PjavaClassVersionDefault=8 :metadata-integration:java:spark-lineage:compileJava
116
+ - name : Gather coverage files
117
+ run : |
118
+ echo "BACKEND_FILES=`find ./build/coverage-reports/ -type f | grep -E '(metadata-models|entity-registry|datahuyb-graphql-core|metadata-io|metadata-jobs|metadata-utils|metadata-service|medata-dao-impl|metadata-operation|li-utils|metadata-integration|metadata-events|metadata-auth|ingestion-scheduler|notifications|datahub-upgrade)' | xargs | sed 's/ /,/g'`" >> $GITHUB_ENV
119
+ echo "FRONTEND_FILES=`find ./build/coverage-reports/ -type f | grep -E '(datahub-frontend|datahub-web-react).*\.(xml|json)$' | xargs | sed 's/ /,/g'`" >> $GITHUB_ENV
116
120
- uses : actions/upload-artifact@v4
117
121
if : always()
118
122
with :
@@ -124,14 +128,28 @@ jobs:
124
128
!**/binary/**
125
129
- name : Ensure codegen is updated
126
130
uses : ./.github/actions/ensure-codegen-updated
127
- - name : Upload coverage to Codecov
128
- if : always()
131
+ - name : Upload backend coverage to Codecov
132
+ if : ${{ matrix.command == 'except_metadata_ingestion' && needs.setup.outputs.backend_change == 'true' }}
133
+ uses : codecov/codecov-action@v5
134
+ with :
135
+ token : ${{ secrets.CODECOV_TOKEN }}
136
+ files : ${{ env.BACKEND_FILES }}
137
+ disable_search : true
138
+ # handle_no_reports_found: true
139
+ fail_ci_if_error : false
140
+ flags : backend
141
+ name : ${{ matrix.command }}
142
+ verbose : true
143
+ - name : Upload frontend coverage to Codecov
144
+ if : ${{ matrix.command == 'frontend' && needs.setup.outputs.frontend_change == 'true' }}
129
145
uses : codecov/codecov-action@v5
130
146
with :
131
147
token : ${{ secrets.CODECOV_TOKEN }}
132
- directory : ./build/coverage-reports/
148
+ files : ${{ env.FRONTEND_FILES }}
149
+ disable_search : true
150
+ # handle_no_reports_found: true
133
151
fail_ci_if_error : false
134
- flags : ${{ matrix.timezone }}
152
+ flags : frontend
135
153
name : ${{ matrix.command }}
136
154
verbose : true
137
155
- name : Upload test results to Codecov
0 commit comments