coverallsapp / github-action

Coveralls Github Action
https://coveralls.io
MIT License
467 stars 75 forks source link

Coveralls fails with Windows runner #175

Open frbuceta opened 1 year ago

frbuceta commented 1 year ago

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

image

mrexox commented 1 year ago

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.

agronholm commented 1 year ago

This workaround then does not work on macOS: image

agronholm commented 1 year ago

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?