diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e99dd5a022..f653e40e1b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -103,11 +103,12 @@ jobs: make test - name: Upload coverage to Codecov if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: file: ./dist/unit_test/ut_coverage.out flags: unittests - fail_ci_if_error: false + fail_ci_if_error: true + verbose: true - name: Process Unit Test Results uses: ./.github/actions/process-test-results # Always is required here to make sure this target runs even when tests fail. diff --git a/codecov.yml b/codecov.yml index b14376cfa1..ebea4d2fdc 100644 --- a/codecov.yml +++ b/codecov.yml @@ -2,14 +2,12 @@ codecov: require_ci_to_pass: yes coverage: - precision: 2 - round: down - range: "50...100" status: project: default: + informational: true target: auto - threshold: 1% + threshold: 0% comment: layout: "reach,diff,flags,tree" @@ -17,6 +15,6 @@ comment: require_changes: no ignore: - - "**/mock_*" # ignore all mock files + - "pkg/**/mock_*" # ignore all mock files - "pkg/armrpc/rpctest/*" # ignore all test helpers in rpctest - - "**/zz_*" # ignore autogenerated files from autorest + - "pkg/**/zz_*" # ignore autogenerated files from autorest