get_it
get_it copied to clipboard
Could you provide a code coverage badge?
Could you provide a code coverage badge?
Ex. https://github.com/marketplace/actions/codecov
Unfortunately I didn't really found to look into it how to setup this correctly.
- you need to register your project on codecov.io. For my case, I just allow codecov connect to my GitHub account.
- Just add a step like what I am doing in my package. For opensource public package, you don't need to send a token. The main thing is to make sure the lcov.info path is correct and start from the root of your repository.
This is my config: https://github.com/zenonine/navi/blob/master/.github/workflows/verify-navi.yml
- uses: codecov/codecov-action@v1
with:
files: ./navi/coverage/lcov.info
that's a github action?
codecov/codecov-action@v1 is a github action. Yes.
I am seeing you are using it, right?
https://github.com/fluttercommunity/get_it/blob/master/.github/workflows/dart.yml
# Code coverage can be acitivated once its ready.
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
honestly I can't remember having added that 🙄
as this repo is part of the fluttter community organisation I first have to get the access right from them
@lukepighetti can you add a coverage badge? you updated the CI stuff thankfully
Could I ask why you want this? Code coverage is a pretty meaningless metric...