diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ba456b..68ac65c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,20 +29,15 @@ jobs: - name: Composer dependencies run: COMPOSER_UPDATE_FLAGS+="${{matrix.composer_update_flags}}" make vendor + - name: Lint + run: find . -name '*.php' -path './src/*' | parallel -j 4 php -l {} + - name: PHPUnit run: make phpunit static-analysis: runs-on: ubuntu-latest name: Static analysis - strategy: - fail-fast: false - matrix: - include: - - php: 8.1 - composer_update_flags: --prefer-lowest - - php: 8.1 - - php: 8.2 steps: - uses: actions/checkout@v2 @@ -50,10 +45,10 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: "${{ matrix.php }}" + php-version: "8.2" - name: Composer dependencies - run: COMPOSER_UPDATE_FLAGS+="${{matrix.composer_update_flags}}" make vendor + run: make vendor - name: Composer validate run: make composer-validate diff --git a/composer.json b/composer.json index bd3ad17..557fc4c 100644 --- a/composer.json +++ b/composer.json @@ -39,8 +39,8 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.9", - "phpstan/phpstan": "1.8.2", - "phpstan/phpstan-phpunit": "1.1.1", + "phpstan/phpstan": "1.10.50", + "phpstan/phpstan-phpunit": "1.3.15", "phpunit/phpunit": "^10.4.2", "symfony/var-dumper": ">=6.3.8" }