badger
badger copied to clipboard
broken link with badger::badge_codecov() - lack codecov token?
Hi @GuangchuangYu! Firstly, thank you for making such a convenient package! I use it regularly for package devs!
I am trying to establish a workflow for setting up:
- codecov for a simple, public R package using
use_coverage(type ="codecov")
- GitHub Actions CI workflow
test-coverage
usingusethis::use_github_action("test-coverage")
- a badge for code coverage using
badger::badge_codecov(branch="gha")
Unfortunately when I use the output for badger::badge_codecov(branch="gha")
e.g. d9e2987 in the README, the badge"shows "unknown: Knitting locally shows the same thing. However navigating to: https://codecov.io/gh/fontikar/ohwhaley/branch/gha/graph/badge.svg, gives me a perfect 100% badge.
I then tried using the codecov badge found in the settings section of the repo which contains my codecov token https://codecov.io/gh/fontikar/ohwhaley/branch/gha/graph/badge.svg?token=XXXXXXXX
and it was successful e.g. 701020d
Am I missing a step? I tried adding the codecov token in my codecov.yaml but that didn't work either e.g. 7cd93db
Your advice would be greatly appreciated!