coverallsapp / coverallsapp/github-action

My builds always incorrectly report coverage to be 0%

Open
#74 3 comments 0 reactions 2 assignees View on GitHub

@afinetooth is already working on this.

Since Mar 17, 2021.

Dominant language
No language data
Stars
520
Forks
78
PR merge metrics
No merged PRs in 30d

Description

I'm running my tests using Github Actions, and posting the report using the github action in this repo. I'm generating my reports using NYC, and I can confirm the report is there because I cat it right after the tests are done. However, my builds always say the coverage is on 0%, and the file list is empty.
My repo is private so I cannot share any links here, but here are some screenshots to help explain what I see in coveralls:

image

image

image

The build #11 was uploaded using the node-coveralls script directly from my machine, and it worked.

Here are the first 200 lines of my coverage report:

TN:
SF:api-server.js
FN:32,displayMessage
FN:65,(anonymous_1)
FN:66,logResponse
FN:67,(anonymous_3)
FN:74,(anonymous_4)
FN:103,(anonymous_5)
FNF:6
FNH:1
FNDA:0,displayMessage
FNDA:0,(anonymous_1)
FNDA:0,logResponse
FNDA:0,(anonymous_3)
FNDA:0,(anonymous_4)
FNDA:1,(anonymous_5)
DA:26,1
DA:27,1
DA:28,1
DA:29,1
DA:30,1
DA:33,0
DA:35,0
DA:36,0
DA:38,0
DA:39,0
DA:41,0
DA:42,0
DA:44,0
DA:45,0
DA:47,0
DA:48,0
DA:50,0
DA:51,0
DA:54,0
DA:55,0
DA:58,0
DA:61,0
DA:65,1
DA:66,0
DA:67,0
DA:68,0
DA:71,0
DA:74,0
DA:75,0
DA:76,0
DA:77,0
DA:78,0
DA:80,0
DA:81,0
DA:93,0
DA:94,0
DA:103,1
DA:104,1
DA:107,1
DA:108,0
LF:40
LH:9
BRDA:38,0,0,0
BRDA:38,0,1,0
BRDA:41,1,0,0
BRDA:41,1,1,0
BRDA:44,2,0,0
BRDA:44,2,1,0
BRDA:47,3,0,0
BRDA:47,3,1,0
BRDA:50,4,0,0
BRDA:50,4,1,0
BRDA:80,5,0,0
BRDA:80,5,1,0
BRDA:104,6,0,0
BRDA:104,6,1,1
BRDA:107,7,0,0
BRDA:107,7,1,1
BRF:16
BRH:2
end_of_record
TN:
SF:config.test.js
FNF:0
FNH:0
DA:1,1
LF:1
LH:1
BRF:0
BRH:0
end_of_record
TN:
SF:smylen.config.test.js
FNF:0
FNH:0
DA:1,1
LF:1
LH:1
BRF:0
BRH:0
end_of_record
TN:
SF:jobs/JobsQueueFake.js
FN:2,(anonymous_0)
FN:5,(anonymous_1)
FN:8,(anonymous_2)
FN:12,(anonymous_3)
FN:15,(anonymous_4)
FN:18,(anonymous_5)
FN:21,(anonymous_6)
FNF:7
FNH:0
FNDA:0,(anonymous_0)
FNDA:0,(anonymous_1)
FNDA:0,(anonymous_2)
FNDA:0,(anonymous_3)
FNDA:0,(anonymous_4)
FNDA:0,(anonymous_5)
FNDA:0,(anonymous_6)
DA:1,1
DA:9,0
DA:22,0
DA:24,0
DA:26,0
LF:5
LH:1
BRDA:22,0,0,0
BRDA:22,0,1,0
BRF:2
BRH:0
end_of_record
TN:
SF:jobs/helpers/DayGenerater.js
FN:3,(anonymous_0)
FN:7,(anonymous_1)
FN:11,(anonymous_2)
FN:15,(anonymous_3)
FN:19,(anonymous_4)
FN:23,(anonymous_5)
FN:27,(anonymous_6)
FNF:7
FNH:0
FNDA:0,(anonymous_0)
FNDA:0,(anonymous_1)
FNDA:0,(anonymous_2)
FNDA:0,(anonymous_3)
FNDA:0,(anonymous_4)
FNDA:0,(anonymous_5)
FNDA:0,(anonymous_6)
DA:4,0
DA:8,0
DA:12,0
DA:16,0
DA:20,0
DA:24,0
DA:28,0
DA:32,1
LF:8
LH:1
BRF:0
BRH:0
end_of_record
TN:
SF:jobs/processors/AdjustCompanySubscription.js
FN:6,(anonymous_0)
FN:12,(anonymous_1)
FNF:2
FNH:0
FNDA:0,(anonymous_0)
FNDA:0,(anonymous_1)
DA:1,1
DA:2,1
DA:7,0
DA:8,0
DA:9,0
DA:13,0
DA:14,0
DA:15,0
DA:25,1
LF:9
LH:3
BRF:0
BRH:0
end_of_record
TN:
SF:jobs/processors/BulkEnrollment.js

Running the action like this:

- name: Coveralls GitHub Action
      uses: coverallsapp/github-action@v1.1.2
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        path-to-lcov: ${{ github.workspace }}/api/coverage/lcov.info

Note that path to lcov.info must be correct because if it is not it throws an Error

Any ideas? We have tried everything we saw documented with no luck.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.