Skip to content

Commit d6dec66

Browse files
committed
ci: use parrallel-lint and cs2pr for improved feedback on linting errors
1 parent e199ea2 commit d6dec66

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- master
1010

1111
jobs:
12-
tests:
12+
lint:
1313
name: "Lint"
1414

1515
runs-on: ubuntu-latest
@@ -27,10 +27,12 @@ jobs:
2727
- name: "Install PHP"
2828
uses: "shivammathur/setup-php@v2"
2929
with:
30-
coverage: "none"
30+
php-version: "${{ matrix.php-version }}"
3131
extensions: "intl"
3232
ini-values: "memory_limit=-1, error_reporting=E_ALL, display_errors=On"
33-
php-version: "${{ matrix.php-version }}"
33+
coverage: "none"
34+
tools: parallel-lint, cs2pr
3435

3536
- name: "Lint PHP files"
36-
run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"
37+
run: |
38+
parallel-lint . --checkstyle | cs2pr

0 commit comments

Comments
 (0)