From 4ea3b30fbad6e3f966ffddfad698a4ff7615e89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Thu, 8 Dec 2022 22:17:21 +0100 Subject: [PATCH] Use github action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- .github/workflows/phpstan.yml | 23 +++++++++-------------- phpstan.neon.dist | 2 +- 2 files changed, 10 insertions(+), 15 deletions(-) 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: - .