diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 88894cf..8702d66 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -47,8 +47,24 @@ jobs: env: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} - - name: Scrutinizer + - name: Send PSALM data + run: vendor/bin/psalm --shepherd --stats + continue-on-error: true + + - name: Send Scrutinizer data run: | wget https://scrutinizer-ci.com/ocular.phar php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml continue-on-error: true + + - name: Infection score report + run: | + vendor/bin/infection run -j 2 + continue-on-error: true + + - name: PHP Insights report + run: | + rm -rf composer.lock vendor + composer require nunomaduro/phpinsights --dev + vendor/bin/phpinsights analyse src/ -n + continue-on-error: true diff --git a/README.md b/README.md index 8d6e71a..c9566e0 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Total Downloads](https://img.shields.io/packagist/dt/ecphp/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/cas-bundle) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ecphp/cas-bundle/Continuous%20Integration/master?style=flat-square)](https://github.com/ecphp/cas-bundle/actions) [![Scrutinizer code quality](https://img.shields.io/scrutinizer/quality/g/ecphp/cas-bundle/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/ecphp/cas-bundle/?branch=master) + [![Type Coverage](https://shepherd.dev/github/ecphp/cas-bundle/coverage.svg)](https://shepherd.dev/github/ecphp/cas-bundle) [![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/ecphp/cas-bundle/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/ecphp/cas-bundle/?branch=master) [![Read the Docs](https://img.shields.io/readthedocs/ecphp-cas-bundle?style=flat-square)](https://ecphp-cas-bundle.readthedocs.io/) [![License](https://img.shields.io/packagist/l/ecphp/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/cas-bundle) @@ -11,4 +12,4 @@ A CAS bundle for Symfony 4 & 5. -Read more on the dedicated documentation site: https://ecphp-cas-bundle.readthedocs.io/ \ No newline at end of file +Read more on the dedicated documentation site: https://ecphp-cas-bundle.readthedocs.io/ diff --git a/composer.json b/composer.json index 4013824..8a6bbbb 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,8 @@ "friends-of-phpspec/phpspec-code-coverage": "^4.3.2", "infection/infection": "^0.15.3", "loophp/unaltered-psr-http-message-bridge-bundle": "^1.0", - "phpspec/phpspec": "^6.2.1" + "phpspec/phpspec": "^6.2.1", + "vimeo/psalm": "^3.12" }, "suggest": { "loophp/unaltered-psr-http-message-bridge-bundle": "A drop-in replacement for symfony/psr-http-message-bridge, that does not alter query parameters.", diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 0000000..b83f4e3 --- /dev/null +++ b/psalm.xml @@ -0,0 +1,16 @@ + + + + + + + + +