Skip to content

Commit af93edf

Browse files
Set up parallel lint
1 parent 064b33a commit af93edf

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
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
@@ -23,6 +23,9 @@ jobs:
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

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,25 @@
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": {

0 commit comments

Comments
 (0)