Skip to content
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

Upload coverage to scrutinizer in github actions #20

Open
wants to merge 2 commits into
base: 4.x
Choose a base branch
from

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Jul 14, 2021

Ports travis after script to GitHub actions.

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

@kenjis kenjis force-pushed the github-actions-scrutinizer branch from fdb9549 to cf1776f Compare July 14, 2021 00:10
@kenjis
Copy link
Member Author

kenjis commented Jul 14, 2021

It seems coverage data was uploaded to scrutinizer.

Run php ocular.phar code-coverage:upload --format=php-clover coverage.clover
#!/usr/bin/env php
Uploading code coverage for repository "g/auraphp/Aura.Project_Kernel" and revision "2d6b52ee60c92f935ea880dc6ca910382f5f264f"... Done
https://github.com/auraphp/Aura.Project_Kernel/pull/20/checks?check_run_id=3062202346

But scrutinizer still says:

The code coverage data was not received within the specified time. Please make sure your third-party service is configured to send code coverage data.
https://scrutinizer-ci.com/g/auraphp/Aura.Project_Kernel/inspections/b2b62f56-7b69-418a-98f0-0e4f9b4d69a9

What's wrong?

@kenjis kenjis force-pushed the github-actions-scrutinizer branch from 3fb1e6f to 7d211c8 Compare July 14, 2021 00:41
@harikt
Copy link
Member

harikt commented Aug 1, 2021

I have no idea about this. I did try myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants