Skip to content

Commit 14b0853

Browse files
authored
Publish coverage even if tests fail
Signed-off-by: Ashley <73482956+ascopes@users.noreply.github.com>
1 parent 1e138d2 commit 14b0853

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,11 @@ jobs:
282282
path: 'artifacts/'
283283

284284
- name: Publish unit test results
285+
continue-on-error: true
285286
uses: EnricoMi/publish-unit-test-result-action@v2
286287
if: always()
287288
with:
288-
action_fail: true
289+
action_fail: false
289290
check_run_annotations: "skipped tests"
290291
deduplicate_classes_by_file_name: true
291292
json_test_case_results: true
@@ -296,8 +297,9 @@ jobs:
296297
time_unit: "milliseconds"
297298

298299
- name: Validate codecov.yml
299-
shell: bash
300300
continue-on-error: false
301+
if: always()
302+
shell: bash
301303
run: curl --data-binary --fail @codecov.yml https://codecov.io/validate
302304

303305
- name: Publish to codecov
@@ -314,5 +316,7 @@ jobs:
314316
shasum -a 256 -c codecov.SHA256SUM
315317
chmod -v +x codecov
316318
./codecov
317-
# TODO: replace original call with this when the feature actually works properly.
318-
#./codecov -c -F unit -F integration -v
319+
# TODO: upload unit test and integration test reports separately so that
320+
# codecov processes it correctly. Need to hardwire the paths in here somehow.
321+
#./codecov -c -F unit -v
322+
#./codecov -c -F integration -v

0 commit comments

Comments
 (0)