Skip to content

Commit

Permalink
Pin the PHPStan version in the PHPStan GitHub action.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvbeek authored and AJenbo committed Apr 15, 2023
1 parent 4a194d9 commit 3082a95
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
matrix:
php: [ '7.4' ]
setup: [ 'stable' ]
phpstan: [1.10.13]

name: PHP ${{ matrix.php }} - ${{ matrix.setup }}
name: PHP ${{ matrix.php }} - ${{ matrix.setup }} - ${{ matrix.phpstan }}

steps:
- uses: actions/checkout@v2
Expand All @@ -37,14 +38,14 @@ jobs:
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-phpstan1.8.2-${{ matrix.php }}-${{ matrix.setup }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-phpstan1.8.2-${{ matrix.php }}-${{ matrix.setup }}-
key: ${{ runner.os }}-phpstan${{ matrix.phpstan }}-${{ matrix.php }}-${{ matrix.setup }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-phpstan${{ matrix.phpstan }}-${{ matrix.php }}-${{ matrix.setup }}-

- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: |
composer remove phpunit/phpunit easy-doc/easy-doc squizlabs/php_codesniffer gregwar/rst --no-interaction --dev --no-update;
composer require phpstan/phpstan:^1.8.2 --no-interaction --dev --no-update;
composer require phpstan/phpstan:${{ matrix.phpstan }} --no-interaction --dev --no-update;
composer update --prefer-dist --no-progress --no-suggest --prefer-${{ matrix.setup }};
- name: Run PHPStan
Expand Down

0 comments on commit 3082a95

Please sign in to comment.