Skip to content

Commit

Permalink
Add Psalm, Infection and Insights reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 25, 2020
1 parent baed28e commit 4e696c2
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/continuous-integration.yml
Expand Up @@ -17,6 +17,11 @@ jobs:
php-versions: ['7.2', '7.3', '7.4']

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@master
with:
Expand Down Expand Up @@ -47,8 +52,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
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -3,6 +3,7 @@
[![Total Downloads](https://img.shields.io/packagist/dt/ecphp/eu-login-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/eu-login-bundle)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ecphp/eu-login-bundle/Continuous%20Integration/master?style=flat-square)](https://github.com/ecphp/eu-login-bundle/actions)
[![Scrutinizer code quality](https://img.shields.io/scrutinizer/quality/g/ecphp/eu-login-bundle/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/ecphp/eu-login-bundle/?branch=master)
[![Type Coverage](https://shepherd.dev/github/ecphp/eu-login-bundle/coverage.svg)](https://shepherd.dev/github/ecphp/eu-login-bundle)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/ecphp/eu-login-bundle/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/ecphp/eu-login-bundle/?branch=master)
[![Read the Docs](https://img.shields.io/readthedocs/ecphp-eu-login-bundle?style=flat-square)](https://ecphp-eu-login-bundle.readthedocs.io/)
[![License](https://img.shields.io/packagist/l/ecphp/eu-login-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/eu-login-bundle)
Expand All @@ -11,4 +12,4 @@

EU Login bundle for Symfony 4 & 5.

Read more on the dedicated documentation site: https://ecphp-eu-login-bundle.readthedocs.io/
Read more on the dedicated documentation site: https://ecphp-eu-login-bundle.readthedocs.io/
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -24,7 +24,8 @@
"drupol/php-conventions": "^1.8.6",
"friends-of-phpspec/phpspec-code-coverage": "^4.3.2",
"infection/infection": "^0.15.3",
"phpspec/phpspec": "^6.2.1"
"phpspec/phpspec": "^6.2.1",
"vimeo/psalm": "^3.12"
},
"autoload": {
"psr-4": {
Expand Down
16 changes: 16 additions & 0 deletions psalm.xml
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<psalm
errorLevel="7"
totallyTyped="true"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
</psalm>

0 comments on commit 4e696c2

Please sign in to comment.