Skip to content

Commit

Permalink
chore(codecov): change codecov.yml (#2135)
Browse files Browse the repository at this point in the history
* Remove default values

* Consider 60 as bad, 80 as good

* Update PR comment
- Show only diff %
- Require changes for it to show comment
- Post once and update existing comment. Do not re-post if deleted

* Create subsections for each range of code coverage
  • Loading branch information
qdm12 authored Jan 5, 2022
1 parent 9e21587 commit 9fed5c1
Showing 1 changed file with 68 additions and 3 deletions.
71 changes: 68 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,72 @@
coverage:
precision: 2
round: down
range: "50...90"
range: "60...80"
status:
gossamer:
default:
target: 60%
# Only require global coverage to be 60%
# to allow room for refactors
90pc:
target: 90%
paths:
- "internal"
- "internal/log"
- "internal/pprof"
- "internal/trie"
80pc:
target: 80%
paths:
- "dot/rpc"
- "dot/system"
- "dot/telemetry"
- "internal/httpserver"
- "lib/services"
70pc:
target: 70%
paths:
- "pkg"
- "pkg/scale"
- "lib/runtime/offchain"
- "lib/transaction"
- "lib/trie"
60pc:
target: 60%
paths:
- "dot"
- "dot/core"
- "dot/digest"
- "dot/network"
- "dot/peerset"
- "dot/sync"
- "lib/runtime/life"
- "lib/grandpa"
- "lib/blocktree"
50pc:
target: 50%
paths:
- "cmd"
- "cmd/gossamer"
- "lib"
- "lib/crypto"
- "lib/runtime"
- "lib/runtime/wasmer"
- "lib/runtime/storage"
- "lib/babe"
33pc:
target: 33%
paths:
- "dot/state"
- "dot/types"
- "lib/common"
- "lib/utils"
- "lib/genesis"
- "lib/keystore"
- "lib/genesis"

comment:
layout: diff
behavior: once
require_changes: true

ignore:
- "docs/**/*"
Expand Down

0 comments on commit 9fed5c1

Please sign in to comment.