Skip to content

Commit 419bc4c

Browse files
committed
feat: Split lint and phpcs, for speeeeeeeeeeeeeeeeeeeeeeeeeeeeed.
1 parent 2a2e668 commit 419bc4c

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/php.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
tools: composer
2121
env:
2222
fail-fast: true
23+
- name: Lint
24+
run: make lint-ci
25+
env:
26+
fail-fast: true
2327
- name: composer
2428
run: composer install
2529
env:
@@ -28,7 +32,7 @@ jobs:
2832
run: composer validate
2933
env:
3034
fail-fast: true
31-
- name: Lint
32-
run: make lint-ci
35+
- name: phpcs
36+
run: make phpcs-ci
3337
env:
3438
fail-fast: true

Makefile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ docker-run:
2424
docker: docker-build docker-run
2525

2626
lint:
27-
./vendor/bin/phpcs --tab-width=4 --report=summary www scripts
27+
find -L www scripts -iregex '.*\.php$$' -print0 | xargs -0 -n 1 -P 4 php -l
2828

29-
lint-verbose:
30-
./vendor/bin/phpcs --tab-width=4 www scripts
29+
lint-ci: lint
3130

32-
lint-ci:
33-
./vendor/bin/phpcs --tab-width=4 www scripts --report=json --report-file=phpcs-report.json
31+
phpcs:
32+
./vendor/bin/phpcs --standard=phpcs.xml --tab-width=4 --report=summary www scripts
33+
34+
phpcs-verbose:
35+
./vendor/bin/phpcs --standard=phpcs.xml --tab-width=4 www scripts
36+
37+
phpcs-ci:
38+
./vendor/bin/phpcs --standard=phpcs.xml --tab-width=4 www scripts --report=json --report-file=phpcs-report.json

0 commit comments

Comments
 (0)