-
Notifications
You must be signed in to change notification settings - Fork 125
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
Add support for Github actions #273
Comments
There's an official github action repo by coveralls but it seems to be for js based projects only https://github.com/coverallsapp/github-action. |
You can use it as it is in local environment since Github has support for secrets. Your step would look something like this:
And create secret with repo token which you can get from coveralls repo settings. See it in action on my repo. |
What about branch names in coveralls.io? I mean that i test php-coveralls, branch for master showed as in attachment |
Yes, I'm seeing same result. Don't know currently how to fix this. |
If use this library need to add new method for collecting env variables from Github Actions here |
Yes, correct. I will take a look if I can find time to create PR for this. |
@renekoss, i prepare PR #275 |
@keradus can we change status of PR linked with this issue in this month? |
Any updates about this issue? |
I also have this issue, and I use this approach @renekorss that mentions for my repository. And it's worked for me :). |
Hello, I have merged the PR into my forked repo, added parallel job support, and published a new release, feel free to use it. https://github.com/twinh/php-coveralls#github-actions Add a new step after phpunit generate coverage report. - name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require twinh/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v |
Closing due to merge of #296 (to be released tonight) |
Currently php-coveralls doesn't auto detect which service it's running on when using Github Actions. It would be nice if it could do so.
Even better if there was a .yml config available for Github action for uploading data to coveralls using this tool.
The text was updated successfully, but these errors were encountered: