diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 5ff490b..fefa907 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,4 +1,4 @@ -name: Go Unit Test +name: Codecov on: push: @@ -31,4 +31,6 @@ jobs: run: bash scripts/codecov.sh - name: Publish to codecov.io + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index e2eeb9c..ba32e88 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ - [algorithm-coding](#algorithm-coding) - [coding time](#coding-time) + - [codecov](#codecov) - [stats](#stats) - [acknowledgement](#acknowledgement) @@ -18,6 +19,13 @@ It covers essential topics for technical interviews, providing detailed explanat ![wakatime](https://wakatime.com/badge/user/01c864c3-99e2-47a2-ad28-cc0f36b02f39/project/19417b50-3182-4aca-8dec-a35aa5133c91.svg) +### codecov + +[![codecov](https://codecov.io/github/InterviewTips/algorithm-coding/graph/badge.svg?token=Y099UQ3IBP)](https://codecov.io/github/InterviewTips/algorithm-coding) + +[![codecov](https://codecov.io/github/InterviewTips/algorithm-coding/graphs/icicle.svg?token=Y099UQ3IBP)](https://codecov.io/github/InterviewTips/algorithm-coding) + + ### stats | ![](https://stats.justsong.cn/api/leetcode?username=ashing&cn=true) | ![](https://stats.justsong.cn/api/leetcode?username=ronething) | diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..49302c0 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,8 @@ +coverage: + status: + project: + default: + target: 75% # the required coverage value + threshold: 1% # the leniency in hitting the target +codecov: + require_ci_to_pass: true