I'm experiencing problems with my github repo configuration. Here it is - umbress. I have Github Actions CI enabled and configured and I want to have the coverage badge in my repo so everyone who wants to use my code in their projects knows that my code is well-tested. But it seems that I missing something because my coverage badge has an "unknown" status for a long time already.
CI steps are:
- Run build
- Run tests and generate coverage (
jest --coverage --config config/jest.js
). This will generate./coverage/lcov.info
in root directory - Finally Coveralls GitHub Action should upload coverage to their website and display the results
There are a few issues:
- When I run builds on pull requests, it says "First build" (but it's not, I've ran a lot of builds on this branch already)
- Coverage info is differs in what jest shows me after tests and what is displaying in Coveralls stats (i.e. in Coveralls it says
FIRST BUILD ON DEVELOPER AT 90.072%
, but there's no such percentage at all! Lines covered is93.43%
and everything in average is89.4%
) - Coverage badge is "unknown" no matter I try to change
What am I doing wrong and what should I do to fix this?