File tree Expand file tree Collapse file tree 6 files changed +22
-9
lines changed Expand file tree Collapse file tree 6 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 9696 composer install --no-interaction --prefer-dist --no-progress
9797
9898 - name : Run phpunit
99- run : vendor/bin/phpunit
99+ run : composer test:ci
Original file line number Diff line number Diff line change 2424 run : composer update --no-progress --no-interaction --prefer-dist
2525
2626 - name : Run script
27- run : composer phpcs
27+ run : composer phpcs:ci
Original file line number Diff line number Diff line change 2424 run : composer update --no-progress --no-interaction --prefer-dist
2525
2626 - name : Run script
27- run : vendor/bin/phpstan analyse
27+ run : composer phpstan:ci
Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ Tests can be run via [PHPUnit](https://phpunit.de).
5454composer tests
5555```
5656
57+ ### Static analysis
58+
59+ Static analysis can be run via [ PHPStan] ( https://phpstan.org ) .
60+
61+ ``` bash
62+ composer phpstan
63+ ```
64+
5765### Code style
5866
5967The code is automatically formatted through [ php-cs-fixer] ( https://cs.symfony.com ) .
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ setup-git:
2020phpcs :
2121 composer phpcs
2222
23+ .PHONY : phpstan
24+ phpstan :
25+ composer phpstan
26+
2327.PHONY : tests
2428tests :
2529 composer tests
Original file line number Diff line number Diff line change 4747 }
4848 },
4949 "scripts" : {
50- "phpcs" : [
51- " vendor/bin/php-cs-fixer fix --verbose --diff --dry-run"
52- ],
53- "tests" : [
54- " vendor/bin/phpunit --verbose"
55- ]
50+ "test" : " vendor/bin/phpunit" ,
51+ "tests" : " @test" ,
52+ "test:ci" : " vendor/bin/phpunit" ,
53+ "phpcs" : " vendor/bin/php-cs-fixer fix" ,
54+ "phpcs:ci" : " vendor/bin/php-cs-fixer fix --dry-run --diff" ,
55+ "phpstan" : " vendor/bin/phpstan analyse" ,
56+ "phpstan:ci" : " vendor/bin/phpstan analyse --error-format github"
5657 },
5758 "extra" : {
5859 "branch-alias" : {
You can’t perform that action at this time.
0 commit comments