11
11
branches :
12
12
- " **"
13
13
workflow_dispatch :
14
+ schedule :
15
+ - cron : " 0 0 * * *" # Run at midnight UTC every day
14
16
release :
15
17
types : [published]
16
18
@@ -134,7 +136,19 @@ jobs:
134
136
- name : Ensure codegen is updated
135
137
uses : ./.github/actions/ensure-codegen-updated
136
138
- name : Upload backend coverage to Codecov
137
- if : ${{ matrix.command == 'except_metadata_ingestion' && needs.setup.outputs.backend_change == 'true' }}
139
+ if : ${{ (matrix.command == 'except_metadata_ingestion' && needs.setup.outputs.backend_change == 'true' && github.event_name != 'release') }}
140
+ uses : codecov/codecov-action@v5
141
+ with :
142
+ token : ${{ secrets.CODECOV_TOKEN }}
143
+ files : ${{ env.BACKEND_FILES }}
144
+ disable_search : true
145
+ # handle_no_reports_found: true
146
+ fail_ci_if_error : false
147
+ flags : backend
148
+ name : ${{ matrix.command }}
149
+ verbose : true
150
+ - name : Upload backend coverage to Codecov on release
151
+ if : ${{ (matrix.command == 'except_metadata_ingestion' && github.event_name == 'release' ) }}
138
152
uses : codecov/codecov-action@v5
139
153
with :
140
154
token : ${{ secrets.CODECOV_TOKEN }}
@@ -146,8 +160,22 @@ jobs:
146
160
name : ${{ matrix.command }}
147
161
verbose : true
148
162
override_branch : ${{ github.head_ref || github.ref_name }}
163
+
149
164
- name : Upload frontend coverage to Codecov
150
- if : ${{ matrix.command == 'frontend' && needs.setup.outputs.frontend_change == 'true' }}
165
+ if : ${{ (matrix.command == 'frontend' && needs.setup.outputs.frontend_change == 'true' && github.event_name != 'release') }}
166
+ uses : codecov/codecov-action@v5
167
+ with :
168
+ token : ${{ secrets.CODECOV_TOKEN }}
169
+ files : ${{ env.FRONTEND_FILES }}
170
+ disable_search : true
171
+ # handle_no_reports_found: true
172
+ fail_ci_if_error : false
173
+ flags : frontend
174
+ name : ${{ matrix.command }}
175
+ verbose : true
176
+
177
+ - name : Upload frontend coverage to Codecov on Release
178
+ if : ${{ (matrix.command == 'frontend' && github.event_name == 'release') }}
151
179
uses : codecov/codecov-action@v5
152
180
with :
153
181
token : ${{ secrets.CODECOV_TOKEN }}
@@ -160,7 +188,12 @@ jobs:
160
188
verbose : true
161
189
override_branch : ${{ github.head_ref || github.ref_name }}
162
190
- name : Upload test results to Codecov
163
- if : ${{ !cancelled() }}
191
+ if : ${{ !cancelled() && github.event_name != 'release' }}
192
+ uses : codecov/test-results-action@v1
193
+ with :
194
+ token : ${{ secrets.CODECOV_TOKEN }}
195
+ - name : Upload test results to Codecov on release
196
+ if : ${{ !cancelled() && github.event_name == 'release' }}
164
197
uses : codecov/test-results-action@v1
165
198
with :
166
199
token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments