Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(codecov): Added a codecov configuration #3891

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

flc1125
Copy link
Contributor

@flc1125 flc1125 commented Mar 14, 2024

coverage:
  require_ci_to_pass: true # This indicates that the code coverage must meet the specified targets in order for the CI (Continuous Integration) process to pass.

  status:
    project:
      default:
        target: 99% # This sets the code coverage target for the project to 99%. It means that at least 99% of the code needs to be covered by tests.
        threshold: 99% # This sets the code coverage threshold for the project to 99% If the code coverage falls below 99%, the CI will be marked as failed.

    patch:
      default:
        target: 99% # This sets the code coverage target for patches to 99%. It means that at least 99% of the patch code needs to be covered by tests.
        threshold: 95% # This sets the code coverage threshold for patches to 95%. If the code coverage of a patch falls below 95%, the CI will be marked as failed.

If there is a need to adjust the thresholds, please provide a comment to explain.

Signed-off-by: Flc゛ <four_leaf_clover@foxmail.com>
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.18%. Comparing base (3dc1cd6) to head (f5dfa84).
Report is 24 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3891      +/-   ##
==========================================
- Coverage   99.21%   99.18%   -0.03%     
==========================================
  Files          42       43       +1     
  Lines        3182     2701     -481     
==========================================
- Hits         3157     2679     -478     
+ Misses         17       12       -5     
- Partials        8       10       +2     
Flag Coverage Δ
?
-race ∅ <ø> (?)
-tags "sonic avx" 99.17% <ø> (?)
-tags go_json 99.17% <ø> (?)
-tags nomsgpack 99.17% <ø> (?)
go-1.18 99.11% <ø> (-0.01%) ⬇️
go-1.19 99.18% <ø> (-0.03%) ⬇️
go-1.20 99.18% <ø> (-0.03%) ⬇️
go-1.21 99.18% <ø> (-0.03%) ⬇️
go-1.22 99.18% <ø> (?)
macos-latest 99.18% <ø> (-0.03%) ⬇️
ubuntu-latest 99.18% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@appleboy appleboy added the test label Mar 21, 2024
@appleboy appleboy added this to the v1.10 milestone Mar 21, 2024
@appleboy appleboy merged commit 78f4687 into gin-gonic:master Mar 21, 2024
54 of 55 checks passed
@flc1125 flc1125 deleted the codecov branch March 21, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants