File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 9
9
/CHANGELOG.md export-ignore
10
10
/README.md export-ignore
11
11
/phpunit.xml export-ignore
12
+ /Makefile export-ignore
12
13
/** /* Test.php export-ignore
13
14
/** /Test ** export-ignore
Original file line number Diff line number Diff line change 2
2
install :
3
3
@docker run --rm -it -v$(PWD ) :/app composer install
4
4
5
+ # make update
6
+ update :
7
+ @docker run --rm -it -v$(PWD ) :/app composer update
8
+
5
9
# unit tests
6
10
phpunit :
7
- @docker run --rm -it -v$(PWD ) :/app --workdir=/app php:8.1-cli-alpine vendor/bin/ phpunit --coverage-text
11
+ @docker run --rm -it -v$(PWD ) :/app composer phpunit
8
12
9
13
# phpstan
10
14
phpstan :
11
- @docker run --rm -it -v$(PWD ) :/app --workdir=/app php:8.1-cli-alpine vendor/bin/ phpstan analyse -l max -c phpstan.neon src --ansi
15
+ @docker run --rm -it -v$(PWD ) :/app composer phpstan
12
16
13
17
# coding style fix
14
18
phpcs :
15
- @docker run --rm -it -v$(PWD ) :/app --workdir=/app php:8.1-cli-alpine vendor/bin/php-cs-fixer fix -vvv --allow-risky=yes
19
+ @docker run --rm -it -v$(PWD ) :/app composer phpcs: fix
16
20
17
21
# test
18
22
test :
19
- @docker run --rm -it -v$(PWD ) :/app --workdir=/app php:8.1-cli-alpine php ./ test.php
23
+ @docker run --rm -it -v$(PWD ) :/app composer test
20
24
21
- .PHONY : install phpunit phpstan phpcs test
25
+ .PHONY : install update phpunit phpstan phpcs test
Original file line number Diff line number Diff line change 28
28
"ext-json" : " *"
29
29
},
30
30
"require-dev" : {
31
- "friendsofphp/php-cs-fixer" : " ^v3.5 .0" ,
31
+ "friendsofphp/php-cs-fixer" : " ^v3.8 .0" ,
32
32
"httpwg/structured-field-tests" : " *@dev" ,
33
- "phpunit/phpunit" : " ^9.5.16 " ,
34
- "phpstan/phpstan" : " ^1.4" ,
33
+ "phpunit/phpunit" : " ^9.5.20 " ,
34
+ "phpstan/phpstan" : " ^1.5. 4" ,
35
35
"phpstan/phpstan-strict-rules" : " ^1.1" ,
36
36
"phpstan/phpstan-phpunit" : " ^1.0" ,
37
37
"phpstan/phpstan-deprecation-rules" : " ^1.0"
You can’t perform that action at this time.
0 commit comments