-
Notifications
You must be signed in to change notification settings - Fork 545
Send coverage to Coveralls #308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ondrejmirtes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it works, but it uses a PHP client, to the guide you linked :)
| COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| composer require twinh/php-coveralls --dev && \ | ||
| vendor/bin/php-coveralls --verbose --coverage_clover=tests/tmp/clover.xml --json_path=tests/tmp/coveralls-upload.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you try following the custom GItHub Action guide instead: https://github.com/marketplace/actions/coveralls-github-action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That GitHub Action is for LCOV formatted coverage only.
I've tried that, please see the 2nd commit.
[error] "2020-08-27T02:10:55.888Z" 'error from lcovParse: ' 'Failed to parse string'
[error] "2020-08-27T02:10:55.889Z" 'input: ' '<?xml version="1.0" encoding="UTF-8"?>\n' +
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an official github action repo by coveralls but it seems to be for js based projects only coverallsapp/github-action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's why I wasn't successful previously. Thanks.
|
Also, you can clean up the current Codecov config. |
|
Okay! Success :) |
|
Thank you. |

Docs: https://github.com/marketplace/actions/coveralls-github-action