From e9381d3ce3672ac00e60ab847ab5d1c2e8c8f0f8 Mon Sep 17 00:00:00 2001 From: kogisin Date: Fri, 24 Sep 2021 16:06:18 +0900 Subject: [PATCH] test: add codecov.yml and revert the prev commit --- .github/.codecov.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/test.yml | 6 ------ 2 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 .github/.codecov.yml 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