From 518df398a0799552c599591f763a967c25f0ccc2 Mon Sep 17 00:00:00 2001 From: Hari K T Date: Tue, 8 Feb 2022 12:55:14 +0530 Subject: [PATCH 1/2] update scrutinizer and readme badges --- .scrutinizer.yml | 14 ++++++-------- README.md | 6 +++--- codecov.yml | 1 + 3 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 codecov.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 7c7c845..552f1f2 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,10 +1,8 @@ +build: + nodes: + analysis: + tests: + override: + - php-scrutinizer-run filter: paths: ["src/*"] -tools: - external_code_coverage: true - php_code_coverage: true - php_sim: true - php_mess_detector: true - php_pdepend: true - php_analyzer: true - php_cpd: true diff --git a/README.md b/README.md index c5c2cd6..4ad2b3a 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ Alternatively, [download a release](https://github.com/auraphp/Aura.Auth/release ### Quality -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/auraphp/Aura.Auth/badges/quality-score.png?b=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Auth/?branch=develop-2) -[![Code Coverage](https://scrutinizer-ci.com/g/auraphp/Aura.Auth/badges/coverage.png?b=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Auth/?branch=develop-2) -[![Build Status](https://travis-ci.org/auraphp/Aura.Auth.png?branch=develop-2)](https://travis-ci.org/auraphp/Aura.Auth) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/auraphp/Aura.Auth/badges/quality-score.png?b=4.x)](https://scrutinizer-ci.com/g/auraphp/Aura.Auth/) +[![codecov](https://codecov.io/gh/auraphp/Aura.Auth/branch/4.x/graph/badge.svg?token=UASDouLxyc)](https://codecov.io/gh/auraphp/Aura.Auth +[![Continuous Integration](https://github.com/auraphp/Aura.Auth/actions/workflows/continuous-integration.yml/badge.svg?branch=4.x)](https://github.com/auraphp/Aura.Auth/actions/workflows/continuous-integration.yml) To run the unit tests at the command line, issue `composer install` and then `vendor/bin/phpunit` at the package root. This requires [Composer](http://getcomposer.org/) to be available as `composer`. diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..69cb760 --- /dev/null +++ b/codecov.yml @@ -0,0 +1 @@ +comment: false From 5cad26c927166dfd7cff49f758ef2846be8549e8 Mon Sep 17 00:00:00 2001 From: Hari K T Date: Tue, 8 Feb 2022 13:00:03 +0530 Subject: [PATCH 2/2] upload coverage --- .github/workflows/continuous-integration.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 23f5f93..89b19f4 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -27,7 +27,7 @@ jobs: - name: "Install PHP with extensions" uses: "shivammathur/setup-php@v2" with: - coverage: "none" + coverage: xdebug ini-values: "memory_limit=-1" php-version: "${{ matrix.php-version }}" @@ -46,7 +46,12 @@ jobs: run: "composer install --no-interaction --no-progress --no-suggest" - name: "Run tests with phpunit/phpunit" - run: "vendor/bin/phpunit" + run: php -d xdebug.mode=coverage ./vendor/bin/phpunit --coverage-clover=coverage.xml + + - name: Upload coverage report + uses: codecov/codecov-action@v2 + with: + fail_ci_if_error: false psalm-tests: name: "Psalm Tests"