diff --git a/.github/.codecov.yml b/.github/.codecov.yml new file mode 100644 index 00000000..a02880f7 --- /dev/null +++ b/.github/.codecov.yml @@ -0,0 +1,28 @@ +# To validate: +# cat codecov.yml | curl --data-binary @- https://codecov.io/validate + +codecov: + notify: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "50...75" + + status: + project: + default: + threshold: 1 + unittest: + threshold: 1 + only_pulls: true + flags: + - "unittest" + # Disable patch since it is noisy and not correct + patch: + default: + enabled: no + if_not_found: success + +comment: false \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fbdfbbcf..b84b9dba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,12 +65,6 @@ jobs: test-race: runs-on: ubuntu-latest timeout-minutes: 15 - status: - # Disable patch since it is noisy and not correct - patch: - default: - enabled: no - if_not_found: success steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2.1.3