Skip to content

Commit

Permalink
Enhancement: Report code coverage to codecov.io
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and PowerKiKi committed Feb 14, 2023
1 parent c343245 commit 211c757
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 30 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.php-cs-fixer.dist.php export-ignore
/.scrutinizer.yaml export-ignore
/composer.lock export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml export-ignore
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ jobs:
- name: Code coverage
run: ./vendor/bin/phpunit --coverage-clover coverage-clover.xml

- name: Upload Scrutinizer coverage
run: |
composer global require scrutinizer/ocular
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage-clover.xml
- name: Send code coverage report to codecov.io
uses: codecov/codecov-action@v3
with:
files: coverage-clover.xml

release:
runs-on: ubuntu-latest
Expand Down
23 changes: 0 additions & 23 deletions .scrutinizer.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Genkgo.CAMT

[![Build Status](https://github.com/genkgo/camt/workflows/main/badge.svg)](https://github.com/genkgo/camt/actions)
[![Code Quality](https://scrutinizer-ci.com/g/genkgo/camt/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/genkgo/camt/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/genkgo/camt/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/genkgo/camt/?branch=master)
[![Code Coverage](https://codecov.io/gh/genkgo/camt/branch/main/graph/badge.svg)](https://codecov.io/gh/genkgo/camt)
[![Total Downloads](https://poser.pugx.org/genkgo/camt/downloads.png)](https://packagist.org/packages/genkgo/camt)
[![Latest Stable Version](https://poser.pugx.org/genkgo/camt/v/stable.png)](https://packagist.org/packages/genkgo/camt)
[![License](https://poser.pugx.org/genkgo/camt/license.png)](https://packagist.org/packages/genkgo/camt)
Expand Down

0 comments on commit 211c757

Please sign in to comment.