-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Require at least phpstan/phpstan:0.12.0
- Loading branch information
1 parent
d58d72f
commit d1f2567
Showing
4 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,13 +58,9 @@ jobs: | |
php-version: | ||
- 7.4 | ||
|
||
phpstan-version: | ||
- "^0.10.3" | ||
- "^0.11.0" | ||
- "^0.12.0" | ||
|
||
dependencies: | ||
- lowest | ||
- locked | ||
- highest | ||
|
||
steps: | ||
|
@@ -82,20 +78,21 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: ~/.composer/cache | ||
key: php-${{ matrix.php-version }}-phpstan-${{ matrix.phpstan-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }} | ||
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
php-${{ matrix.php-version }}-phpstan-${{ matrix.phpstan-version }}-composer-${{ matrix.dependencies }}- | ||
php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- | ||
- name: "Require phpstan/phpstan:${{ matrix.phpstan-version }} with lowest dependencies" | ||
- name: "Install lowest dependencies with composer" | ||
if: matrix.dependencies == 'lowest' | ||
run: composer require phpstan/phpstan:${{ matrix.phpstan-version }} --no-interaction --no-progress --no-suggest --prefer-lowest --update-with-dependencies | ||
run: composer update --no-interaction --no-progress --no-suggest --prefer-lowest | ||
|
||
- name: "Require phpstan/phpstan:${{ matrix.phpstan-version }} with highest dependencies" | ||
if: matrix.dependencies == 'highest' | ||
run: composer require phpstan/phpstan:${{ matrix.phpstan-version }} --no-interaction --no-progress --no-suggest --update-with-dependencies | ||
- name: "Install locked dependencies with composer" | ||
if: matrix.dependencies == 'locked' | ||
run: composer install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Run composer show phpstan/phpstan" | ||
run: composer show phpstan/phpstan | ||
- name: "Install highest dependencies with composer" | ||
if: matrix.dependencies == 'highest' | ||
run: composer update --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Run phpstan/phpstan" | ||
run: vendor/bin/phpstan analyse --configuration=phpstan.neon | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.