diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 64456203..690f9703 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -9,18 +9,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3.1.0 - - name: Validate composer.json and composer.lock - run: composer validate - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3.0.11 + + - name: Install composer + uses: php-actions/composer@v6 + + - name: Run PHPStan + uses: php-actions/phpstan@v3 with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress --no-suggest - - name: Run phpstan - run: composer run-script phpstan + configuration: phpstan.neon.dist + memory_limit: 256M + diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 63d89285..6f5fe642 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,6 +1,6 @@ parameters: level: 0 - excludes_analyse: + excludePaths: - vendor scanDirectories: - .