Skip to content

Commit

Permalink
configure codecov properly (#10375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekleog-NEAR authored Jan 2, 2024
1 parent ba024a2 commit ac4db89
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: coverage
# Keep the number of uploads here in sync with codecov.yml’s after_n_build value
# codecov will send a comment only after having receidev this number of uploads.
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
31 changes: 31 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
codecov:
notify:
after_n_builds: 10 # Keep in sync with .github/workflows/ci.yml

coverage:
status:
project:
default:
target: auto
threshold: 5%
patch:
default: false

component_management:
default_rules:
paths:
- "!debug_scripts/**"
- "!docs/**"
- "!genesis-tools/**"
- "!nightly/**"
- "!tools/**"
statuses:
- type: project
target: auto
threshold: 0.1%
- type: patch
target: auto
individual_components:
- component_id: unit-tests
flag_regexes: ["unittests"]
- component_id: all-tests

0 comments on commit ac4db89

Please sign in to comment.