diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5a033a..08db777 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: lint: - name: Lint with PHPCS + name: Lint with parallel-lint and PHPCS runs-on: ubuntu-latest steps: - name: Checkout @@ -23,6 +23,9 @@ jobs: - name: Install composer dependencies run: composer install + - name: Run parallel-lint + run: vendor/bin/parallel-lint . --exclude vendor + - name: Run phpcs run: vendor/bin/phpcs -p -s diff --git a/composer.json b/composer.json index 760858a..46a9432 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ "squizlabs/php_codesniffer": "3.11.3" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^12.0", + "php-parallel-lint/php-parallel-lint": "^1.4" }, "autoload": { "psr-4": { @@ -24,11 +25,16 @@ } }, "scripts": { + "parallel-lint": "parallel-lint . --exclude vendor", "phpcs": "phpcs -p -s", "phpunit": "phpunit", + "lint": [ + "@parallel-lint", + "@phpcs" + ], "test": [ "@phpunit", - "@phpcs" + "@lint" ] }, "config": {