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 167e3cc commit c80290b
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -11,4 +12,4 @@

A CAS bundle for Symfony 4 & 5.

Read more on the dedicated documentation site: https://ecphp-cas-bundle.readthedocs.io/
Read more on the dedicated documentation site: https://ecphp-cas-bundle.readthedocs.io/
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
16 changes: 16 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -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 c80290b

Please sign in to comment.