@@ -13,12 +13,21 @@ jobs:
1313 strategy :
1414 fail-fast : false
1515 matrix :
16- php-versions : ['7.3', '7.4', '8.0', '8.1']
16+ php-versions : ['7.3', '7.4']
17+ phpstan : ['1']
1718 drupal-core : ['9.3.x']
1819 include :
1920 # Extra run to also test on latest Drupal 8 and PHP 7.2.
2021 - php-versions : ' 7.2'
2122 drupal-core : ' 8.9.x'
23+ phpstan : ' 1'
24+ # PHPStan is broken on PHP 8.0 and 8.1 for now, don't run it there.
25+ - php-versions : ' 8.0'
26+ drupal-core : ' 9.3.x'
27+ phpstan : ' 0'
28+ - php-versions : ' 8.1'
29+ drupal-core : ' 9.3.x'
30+ phpstan : ' 0'
2231 steps :
2332 - name : Checkout Drupal core
2433 uses : actions/checkout@v2
@@ -80,11 +89,11 @@ jobs:
8089 webonyx/graphql-php:^14.8 \
8190 drupal/typed_data:^1.0 \
8291 drupal/redirect:^1.6 \
83- phpstan/phpstan:^0.12.88 \
84- mglaman/phpstan-drupal:^0.12.8 \
85- phpstan/phpstan-deprecation-rules:^0.12.2 \
86- jangregor/phpstan-prophecy:^0.8 \
87- phpstan/phpstan-phpunit:^0.12
92+ phpstan/phpstan:^1.2.0 \
93+ mglaman/phpstan-drupal:^1.1.2 \
94+ phpstan/phpstan-deprecation-rules:^1.0.0 \
95+ jangregor/phpstan-prophecy:^1.0.0 \
96+ phpstan/phpstan-phpunit:^1.0.0
8897
8998 # We install Coder separately because updating did not work in the local
9099 # Drupal vendor dir.
@@ -103,7 +112,7 @@ jobs:
103112
104113 - name : Run PHPStan
105114 run : |
106- cd modules/graphql && ../../vendor/bin/phpstan analyse
115+ if [[ ${{ matrix.phpstan }} == "1" ]]; then cd modules/graphql && ../../vendor/bin/phpstan analyse; fi
107116
108117 - name : Run PHPCS
109118 run : |
0 commit comments