diff --git a/.gitattributes b/.gitattributes index 43d0e51..faef17c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 07de598..4a280df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 65b937e..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,23 +0,0 @@ -checks: - php: true - -coding_style: - php: - spaces: - before_parentheses: - closure_definition: true - around_operators: - concatenation: true - -build: - nodes: - analysis: - tests: - override: - - php-scrutinizer-run - -build_failure_conditions: - - 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed - - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity - - 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection - - 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed diff --git a/README.md b/README.md index ee6414c..4b5854a 100644 --- a/README.md +++ b/README.md @@ -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)