Skip to content

Commit

Permalink
GH Actions: simplify the PHPStan workflow
Browse files Browse the repository at this point in the history
* No need to install via Composer, the `setup-php` action can make PHPStan globally available.
  • Loading branch information
jrfnl committed Feb 28, 2021
1 parent 1106d65 commit 07ec92c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 07ec92c

Please sign in to comment.