File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99jobs :
1010 lint :
11- name : Lint with PHPCS
11+ name : Lint with parallel-lint and PHPCS
1212 runs-on : ubuntu-latest
1313 steps :
1414 - name : Checkout
2323 - name : Install composer dependencies
2424 run : composer install
2525
26+ - name : Run parallel-lint
27+ run : vendor/bin/parallel-lint . --exclude vendor
28+
2629 - name : Run phpcs
2730 run : vendor/bin/phpcs -p -s
2831
Original file line number Diff line number Diff line change 1616 "squizlabs/php_codesniffer" : " 3.11.3"
1717 },
1818 "require-dev" : {
19- "phpunit/phpunit" : " ^12.0"
19+ "phpunit/phpunit" : " ^12.0" ,
20+ "php-parallel-lint/php-parallel-lint" : " ^1.4"
2021 },
2122 "autoload" : {
2223 "psr-4" : {
2324 "DanielEScherzer\\ CommonPhpcs\\ " : " src/"
2425 }
2526 },
2627 "scripts" : {
28+ "parallel-lint" : " parallel-lint . --exclude vendor" ,
2729 "phpcs" : " phpcs -p -s" ,
2830 "phpunit" : " phpunit" ,
31+ "lint" : [
32+ " @parallel-lint" ,
33+ " @phpcs"
34+ ],
2935 "test" : [
3036 " @phpunit" ,
31- " @phpcs "
37+ " @lint "
3238 ]
3339 },
3440 "config" : {
You can’t perform that action at this time.
0 commit comments