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

Github Actions unable to send ocular data #60

Open
gravataLonga opened this issue Jun 6, 2022 · 2 comments
Open

Github Actions unable to send ocular data #60

gravataLonga opened this issue Jun 6, 2022 · 2 comments

Comments

@gravataLonga
Copy link

Hello, i'm new at sending data to scrutinizer-ci and github actions, but i've some automation on my actions on github, but i'm getting same erro and can't putting work. I'm always get same error:

In RepositoryIntrospector.php line 39:
  Failed to retrieve commit parents. If you use a shallow git checkout, pleas  
  e checkout at least a depth of one.                                          
code-coverage:upload [--api-url API-URL] [--repository REPOSITORY] [--revision REVISION] [--format FORMAT] [--parent PARENT] [--] <coverage-file>
Error: Process completed with exit code 1.

This is my action:

./vendor/bin/ocular code-coverage:upload build/logs/clover.xml --format=php-clover --repository='g/gravataLonga/container' --revision=${{ github.event.pull_request.head.sha || github.sha }}

What i'm doing wrong?
Many thank for any help, probably this isn't best place, you can remove my issue.

Best Regards,
Jonathan Fontes

@live627
Copy link

live627 commented Mar 25, 2023

@williamdes
Copy link

Fetch depth 10 works fine too and costs less.
I recommend this for my GitHub action: https://github.com/sudo-bot/action-scrutinizer

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

No branches or pull requests

3 participants