https://github.com/sudo-bot/action-scrutinizer
A GitHub action to send Scrutinizer coverage
https://github.com/sudo-bot/action-scrutinizer
coverage github-actions php8 scrutinizer
Last synced: 2 months ago
JSON representation
A GitHub action to send Scrutinizer coverage
- Host: GitHub
- URL: https://github.com/sudo-bot/action-scrutinizer
- Owner: sudo-bot
- License: mpl-2.0
- Created: 2021-01-10T16:44:56.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-05T09:00:14.000Z (over 1 year ago)
- Last Synced: 2025-04-04T15:39:58.522Z (9 months ago)
- Topics: coverage, github-actions, php8, scrutinizer
- Language: Dockerfile
- Homepage: https://github.com/marketplace/actions/action-scrutinizer
- Size: 37.1 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# action-scrutinizer
A GitHub action to send Scrutinizer coverage
[](https://github.com/sudo-bot/action-scrutinizer/actions/workflows/build.yml)
[](https://github.com/sudo-bot/action-scrutinizer/actions/workflows/ocular.yml)
You can find the image on [Docker Hub](https://hub.docker.com/r/botsudo/action-scrutinizer)
[](https://hub.docker.com/r/botsudo/action-scrutinizer)
## Example usage
```yml
- uses: actions/checkout@v4
with:
# Fetch 10 commits or Scrutinizer will throw ("Failed to retrieve commit parents. If you use a shallow git checkout, please checkout at least a depth of one."), see: RepositoryIntrospector at scrutinizer-ci/ocular GitHub repository
# 10 commits is an arbitrary value that is more than 1 commit
fetch-depth: 10
- name: Upload Scrutinizer coverage
uses: sudo-bot/action-scrutinizer@latest
```
## Example advanced usage
```yml
- uses: actions/checkout@v4
with:
# Fetch 10 commits or Scrutinizer will throw ("Failed to retrieve commit parents. If you use a shallow git checkout, please checkout at least a depth of one."), see: RepositoryIntrospector at scrutinizer-ci/ocular GitHub repository
# 10 commits is an arbitrary value that is more than 1 commit
fetch-depth: 10
- name: Upload Scrutinizer coverage
uses: sudo-bot/action-scrutinizer@latest
# Do not run this step on forked versions of the main repository (example: contributor forks)
if: github.repository == 'sudo-bot/example-repo'
with:
cli-args: "--format=php-clover build/logs/clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}"
```