File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 6161
6262 - name : " Full CI"
6363 run : " composer ci"
64+
65+ - name : " Check dependencies"
66+ run : |
67+ cd dependency-tests
68+ ./check-phpstan-dependencies.sh
Original file line number Diff line number Diff line change 1+ *
2+ ! .gitignore
3+ ! check-phpstan-dependencies.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ # Remove any existing composer files from previous run of the script
6+ rm -f composer.* || true
7+
8+ # Create composer.json
9+ cat << - "EOF " > composer.json
10+ {
11+ "name": "demo/test_dependencies",
12+ "repositories" : [
13+ {
14+ "type" : "path",
15+ "url" : "../"
16+ }
17+ ]
18+ }
19+ EOF
20+
21+ # Check PHPStan v1 is OK
22+ composer require --dev phpstan/phpstan:^1.0
23+ composer require --dev dave-liddament/phpstan-php-language-extensions @dev
24+ composer update --prefer-lowest --no-interaction
25+
26+ # Check PHPStan v2 is OK
27+ composer require --dev phpstan/phpstan:^2.0
You can’t perform that action at this time.
0 commit comments