diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 690ec0e..08fbbd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,16 @@ jobs: matrix: php-versions: ['8.0', '8.1', '8.2', '8.3'] coverage: ['pcov'] + code-style: ['no'] code-analysis: ['no'] include: - php-versions: '7.4' coverage: 'none' + code-style: 'yes' + code-analysis: 'yes' + - php-versions: '8.4' + coverage: 'none' + code-style: 'no' code-analysis: 'yes' steps: - name: Checkout @@ -48,8 +54,8 @@ jobs: run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Code Analysis (PHP CS-Fixer) - if: matrix.code-analysis == 'yes' - run: php vendor/bin/php-cs-fixer fix --dry-run --diff + if: matrix.code-style == 'yes' + run: PHP_CS_FIXER_IGNORE_ENV=true php vendor/bin/php-cs-fixer fix --dry-run --diff - name: Code Analysis (PHPStan) if: matrix.code-analysis == 'yes' diff --git a/composer.json b/composer.json index ccab9bf..2d26c23 100644 --- a/composer.json +++ b/composer.json @@ -37,11 +37,11 @@ } }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.56", - "phpstan/phpstan": "^1.11", + "friendsofphp/php-cs-fixer": "^3.64", + "phpstan/phpstan": "^1.12", "phpstan/phpstan-phpunit": "^1.4", "phpstan/phpstan-strict-rules": "^1.6", - "phpstan/extension-installer": "^1.3", + "phpstan/extension-installer": "^1.4", "phpunit/phpunit" : "^9.6" }, "scripts": {