Skip to content

Commit

Permalink
Add codecov configs
Browse files Browse the repository at this point in the history
  • Loading branch information
sahandilshan committed Jul 23, 2024
1 parent 23cba59 commit 1d049e4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ jobs:
${{ runner.os }}-
- name: Build with Maven
run: mvn clean install -U -B

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
15 changes: 15 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
codecov:
require_ci_to_pass: yes
notify:
wait_for_ci: yes
coverage:
status:
project: # checks the effect for the overall code coverage rate of the repository.
default:
enabled: yes
threshold: null
target: auto
patch: # This status indicates the extent of code coverage achieved by the pull request.
default:
target: 80%
threshold: 40% # With a target of 80% and a threshold of 40%, the acceptable coverage range is 40% to 80%.

0 comments on commit 1d049e4

Please sign in to comment.