File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,10 @@ jobs:
27
27
run : composer install
28
28
29
29
- name : Lint
30
- run : ./vendor/bin/phpcs --standard=phpcs.xml src/ tests/
31
-
32
- - name : PHPMD
33
- run : ./vendor/bin/phpmd . text phpmd.xml --exclude vendor
30
+ run : composer lint
34
31
35
32
- name : Unit Test
36
- run : XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/Unit
33
+ run : composer test
37
34
38
35
- name : Acceptance Test
39
36
run : ./vendor/bin/phpunit tests/Acceptance
Original file line number Diff line number Diff line change 27
27
"post-install-cmd" : [
28
28
" php -r \" if (is_dir('.git/hooks/')) {copy('.git-pre-commit', '.git/hooks/pre-commit'); chmod('.git/hooks/pre-commit', 0755);}\" "
29
29
],
30
- "lint" : " phpcs --standard=phpcs.xml ." ,
31
- "lint-fix" : " phpcbf --standard=phpcs.xml ."
30
+ "lint" : " phpcs --standard=phpcs.xml . && phpmd . text phpmd.xml --exclude vendor" ,
31
+ "lint-fix" : " phpcbf --standard=phpcs.xml ." ,
32
+ "test" : " XDEBUG_MODE=coverage phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/Unit"
32
33
},
33
34
"config" : {
34
35
"allow-plugins" : {
You can’t perform that action at this time.
0 commit comments