File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,19 +32,33 @@ jobs:
3232
3333 analyse-php :
3434 runs-on : ubuntu-latest
35+ strategy :
36+ matrix :
37+ php-version : ["7.1"]
3538 steps :
3639 - uses : actions/checkout@v2
37- - name : Use php 7.1
40+ - name : Use PHP ${{ matrix.php-version }}
3841 uses : shivammathur/setup-php@v2
3942 with :
40- php-version : 7.1
43+ php-version : ${{ matrix.php-version }}
4144 tools : composer:v2
42- - name : Cache module
45+
46+ - name : Get Composer cache directory
47+ id : composer-cache
48+ run : |
49+ echo "::set-output name=dir::$(composer config cache-files-dir)"
50+
51+ - name : Cache dependencies
4352 uses : actions/cache@v2
4453 with :
45- path : ~/.composer/cache/
46- key : composer-cache
54+ path : ${{ steps.composer-cache.outputs.dir }}
55+ key : composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
56+ restore-keys : |
57+ composer-${{ runner.os }}-${{ matrix.php-version }}-
58+
4759 - name : Install dependencies
4860 run : composer install
49- - name : Analyse files
61+ - name : Analyse files with PHPStan
5062 run : ./vendor/bin/phpstan analyse
63+ - name : Analyse files with Psalm
64+ run : ./vendor/bin/psalm --shepherd
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ A validating SQL lexer and parser with a focus on MySQL dialect.
1111[ ![ Translation status] ( https://hosted.weblate.org/widgets/phpmyadmin/-/svg-badge.svg )] ( https://hosted.weblate.org/engage/phpmyadmin/?utm_source=widget )
1212[ ![ Packagist] ( https://img.shields.io/packagist/dt/phpmyadmin/sql-parser.svg )] ( https://packagist.org/packages/phpmyadmin/sql-parser )
1313[ ![ Open Source Helpers] ( https://www.codetriage.com/phpmyadmin/sql-parser/badges/users.svg )] ( https://www.codetriage.com/phpmyadmin/sql-parser )
14+ [ ![ Type coverage] ( https://shepherd.dev/github/phpmyadmin/sql-parser/coverage.svg )] ( https://shepherd.dev/github/phpmyadmin/sql-parser )
1415
1516## Installation
1617
Original file line number Diff line number Diff line change 2727 "phpstan/phpstan-phpunit" : " ^0.12.16" ,
2828 "phpunit/php-code-coverage" : " *" ,
2929 "phpunit/phpunit" : " ^7.4 || ^8 || ^9" ,
30+ "psalm/plugin-phpunit" : " ^0.16.1" ,
31+ "vimeo/psalm" : " ^4.10" ,
3032 "zumba/json-serializer" : " ^3.0"
3133 },
3234 "conflict" : {
You can’t perform that action at this time.
0 commit comments