File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66.gitattributes export-ignore
77.gitignore export-ignore
88.php_cs export-ignore
9- grumphp.yml export-ignore
109Makefile export-ignore
1110phpmd.xml export-ignore
1211phpstan.neon export-ignore
Original file line number Diff line number Diff line change 2222 php-version : ' 7.4'
2323 - name : Install dependencies
2424 run : composer install --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist
25- - name : Run code quality checks
26- run : vendor/bin/grumphp run --testsuite=code_quality
25+ - name : Run PHP CS Fixer
26+ run : composer php-cs-fixer
27+ - name : Run PHPStan
28+ run : composer phpstan
2729 php-tests :
2830 name : Run tests on ${{ matrix.php-versions }}
2931 runs-on : ubuntu-latest
3941 uses : shivammathur/setup-php@v2
4042 with :
4143 php-version : ${{ matrix.php-versions }}
42- - name : Remove GrumPHP
43- run : composer remove --dev phpro/grumphp
4444 - name : Install dependencies
4545 run : composer install --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist
4646 - name : Run unit tests
47- run : vendor/bin/phpunit
47+ run : composer tests-unit
Original file line number Diff line number Diff line change 3737 "aws/aws-sdk-php" : " ^3.171" ,
3838 "friendsofphp/php-cs-fixer" : " ^3.0" ,
3939 "php-mock/php-mock-phpunit" : " ^2.6" ,
40- "php-parallel-lint/php-parallel-lint" : " ^1.1" ,
41- "phpmd/phpmd" : " ^2.7" ,
42- "phpro/grumphp" : " ^1.0" ,
4340 "phpstan/phpstan" : " ^1.0" ,
4441 "phpunit/phpunit" : " ^8.0"
4542 },
4643 "config" : {
47- "allow-plugins" : {
48- "phpro/grumphp" : true
49- },
5044 "optimize-autoloader" : true ,
5145 "platform" : {
5246 "php" : " 7.4.33"
6559 "Ymir\\ Runtime\\ Tests\\ " : " tests"
6660 }
6761 },
68- "prefer-stable" : true
62+ "prefer-stable" : true ,
63+ "scripts" : {
64+ "php-cs-fixer" : " php-cs-fixer fix --dry-run --allow-risky=yes" ,
65+ "phpstan" : " phpstan analyze --ansi" ,
66+ "tests-unit" : " phpunit --testsuite unit"
67+ }
6968}
You can’t perform that action at this time.
0 commit comments