Skip to content

Commit 545aafc

Browse files
committed
feat(59649): refactor the upload test results to Codecov
1 parent 5ee249b commit 545aafc

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci-cd-java.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ jobs:
9595

9696
- name: Upload test results to Codecov
9797
if: ${{ !cancelled() }}
98-
uses: codecov/test-results-action@v1
98+
uses: codecov/codecov-action@v5
9999
with:
100100
token: ${{ secrets.CODECOV_TOKEN }}
101+
fail_ci_if_error: true
102+
report_type: test_results
101103

102104
- name: Build artifact
103105
working-directory: ${{ inputs.workingDirectory }}

.github/workflows/ci-cd-kotlin.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ jobs:
7272

7373
- name: Upload test results to Codecov
7474
if: ${{ !cancelled() }}
75-
uses: codecov/test-results-action@v1
75+
uses: codecov/codecov-action@v5
7676
with:
7777
token: ${{ secrets.CODECOV_TOKEN }}
78+
fail_ci_if_error: true
79+
report_type: test_results
7880

7981
- name: Upload .jar artifact
8082
if: ${{ inputs.uploadJarArtifact }}

.github/workflows/ci-cd-typescript.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ jobs:
6363

6464
- name: Upload test results to Codecov
6565
if: ${{ !cancelled() }}
66-
uses: codecov/test-results-action@v1
66+
uses: codecov/codecov-action@v5
6767
with:
6868
token: ${{ secrets.CODECOV_TOKEN }}
69+
fail_ci_if_error: true
70+
report_type: test_results
6971

7072
- name: Check if perform release
7173
id: perform_release

0 commit comments

Comments
 (0)