From 07ec92c86122a5e201a78859003d9cd4fd2321a2 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 28 Feb 2021 04:34:26 +0100 Subject: [PATCH] GH Actions: simplify the PHPStan workflow * No need to install via Composer, the `setup-php` action can make PHPStan globally available. --- .github/workflows/phpstan.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 293fdb30bb..91fd6e320f 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -25,14 +25,13 @@ jobs: with: php-version: '7.4' coverage: none - - - name: 'Composer: require PHPStan' - run: composer require --no-update --dev phpstan/phpstan + tools: phpstan # Install dependencies and handle caching in one go. + # Dependencies need to be installed to make sure the PHPUnit classes are recognized. # @link https://github.com/marketplace/actions/install-composer-dependencies - name: Install Composer dependencies uses: "ramsey/composer-install@v1" - name: Run PHPStan - run: vendor/bin/phpstan analyse --configuration=phpstan.neon + run: phpstan analyse --configuration=phpstan.neon