Skip to content

Commit

Permalink
fix: codecov with token (#226)
Browse files Browse the repository at this point in the history
Signed-off-by: ashing <[email protected]>
  • Loading branch information
ronething authored Jul 16, 2024
1 parent d9cf0f6 commit a8ef844
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go Unit Test
name: Codecov

on:
push:
Expand Down Expand Up @@ -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)
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- [algorithm-coding](#algorithm-coding)
- [coding time](#coding-time)
- [codecov](#codecov)
- [stats](#stats)
- [acknowledgement](#acknowledgement)

Expand All @@ -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) |
Expand Down
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a8ef844

Please sign in to comment.