File tree 6 files changed +22
-9
lines changed
6 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 96
96
composer install --no-interaction --prefer-dist --no-progress
97
97
98
98
- name : Run phpunit
99
- run : vendor/bin/phpunit
99
+ run : composer test:ci
Original file line number Diff line number Diff line change 24
24
run : composer update --no-progress --no-interaction --prefer-dist
25
25
26
26
- name : Run script
27
- run : composer phpcs
27
+ run : composer phpcs:ci
Original file line number Diff line number Diff line change 24
24
run : composer update --no-progress --no-interaction --prefer-dist
25
25
26
26
- 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).
54
54
composer tests
55
55
```
56
56
57
+ ### Static analysis
58
+
59
+ Static analysis can be run via [ PHPStan] ( https://phpstan.org ) .
60
+
61
+ ``` bash
62
+ composer phpstan
63
+ ```
64
+
57
65
### Code style
58
66
59
67
The 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:
20
20
phpcs :
21
21
composer phpcs
22
22
23
+ .PHONY : phpstan
24
+ phpstan :
25
+ composer phpstan
26
+
23
27
.PHONY : tests
24
28
tests :
25
29
composer tests
Original file line number Diff line number Diff line change 47
47
}
48
48
},
49
49
"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"
56
57
},
57
58
"extra" : {
58
59
"branch-alias" : {
You can’t perform that action at this time.
0 commit comments