File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 php-version : ' 7.4'
1919 - name : Install dependencies
2020 run : composer update ${{ matrix.dependency-version }} --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist
21- - name : Run code quality checks
22- run : vendor/bin/grumphp run --testsuite=code_quality
21+ - name : Run PHP CS Fixer
22+ run : composer php-cs-fixer
23+ - name : Run PHPStan
24+ run : composer phpstan
2325 php-test :
2426 name : Run tests on ${{ matrix.php }}
2527 runs-on : ubuntu-latest
3941 uses : shivammathur/setup-php@v2
4042 with :
4143 php-version : ${{ matrix.php }}
42- - name : Remove GrumPHP
43- run : composer remove --dev phpro/grumphp
4444 - name : Install dependencies
4545 run : composer update ${{ matrix.dependency-version }} --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist
4646 - name : Run unit tests
47- run : vendor/bin/phpunit --testsuite unit
47+ run : composer tests: unit
Original file line number Diff line number Diff line change 2121 "fakerphp/faker" : " ^1.17" ,
2222 "friendsofphp/php-cs-fixer" : " ^3.0" ,
2323 "php-mock/php-mock-phpunit" : " ^2.7" ,
24- "php-parallel-lint/php-parallel-lint" : " ^1.1" ,
25- "phpro/grumphp" : " ^1.0" ,
2624 "phpstan/phpstan" : " ^1.0" ,
27- "phpunit/phpunit" : " ^9.3" ,
28- "sebastian/phpcpd" : " ^6.0.3"
25+ "phpunit/phpunit" : " ^9.3"
2926 },
3027 "config" : {
31- "allow-plugins" : {
32- "phpro/grumphp" : true
33- },
3428 "optimize-autoloader" : true ,
3529 "preferred-install" : " dist" ,
3630 "sort-packages" : true
4438 "psr-4" : {
4539 "Ymir\\ Sdk\\ Tests\\ " : " tests"
4640 }
41+ },
42+ "scripts" : {
43+ "php-cs-fixer" : " php-cs-fixer fix --dry-run --allow-risky=yes" ,
44+ "php-cs-fixer:fix" : " php-cs-fixer fix --allow-risky=yes" ,
45+ "phpstan" : " phpstan analyze --ansi" ,
46+ "tests:unit" : " phpunit --testsuite unit"
4747 }
4848}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments