coverallsapp/github-action

Coveralls fails with Windows runner

frbuceta opened this issue · 3 comments

Coverrals does not work using Windows as runner in GitHub Actions. See failed job

image

mrexox commented

Hey! Thank you for reporting. I have investigated the issue and it looks like there is a problem with auto-searching for coverage files on Windows. I assume this is not easy to fix, so I'd like to suggest you a workaround.

diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
index 6833a7832b..cef9e783bf 100644
--- a/.github/workflows/continuous-integration.yml
+++ b/.github/workflows/continuous-integration.yml
@@ -52,7 +52,7 @@ jobs:
         with:
           flag-name: run-${{ matrix.os }}-node@${{ matrix.node-version }}
           github-token: ${{ secrets.GITHUB_TOKEN }}
+          file: coverage/lcov.info
           parallel: true

   post-test:

Providing file skips searching, so the error won't appear, and everything should go OK.

Anyway I will continue investigation of this issue and try fixing it.

This workaround then does not work on macOS:
image

Now it seems to work at brew installs a more recent (0.6.4) version of coveralls instead of 0.5.2 in the above screenshot. Is there any way it could be made to install a coveralls version that wasn't so badly out of date?