File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,16 @@ jobs:
1515 matrix :
1616 php-versions : ['7.3', '7.4']
1717 drupal-core : ['9.1.x']
18- # Extra run to also test on latest Drupal 8 and PHP 7.2.
18+ phpstan : ['1']
1919 include :
20+ # 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 does not work on PHP 8 yet for us.
25+ - php-versions : ' 8.0'
26+ drupal-core : ' 9.1.x'
27+ phpstan : ' 0'
2228 steps :
2329 - name : Checkout Drupal core
2430 uses : actions/checkout@v2
8086 webonyx/graphql-php:^14.3 \
8187 drupal/typed_data:^1.0 \
8288 drupal/redirect:^1.6 \
83- phpstan/phpstan:0.12.69 \
84- mglaman/phpstan-drupal:^0.12.3 \
89+ phpstan/phpstan:^ 0.12.70 \
90+ mglaman/phpstan-drupal:^0.12.8 \
8591 phpstan/phpstan-deprecation-rules:^0.12.2 \
8692 jangregor/phpstan-prophecy:^0.8 \
8793 phpstan/phpstan-phpunit:^0.12
@@ -103,7 +109,7 @@ jobs:
103109
104110 - name : Run PHPStan
105111 run : |
106- cd modules/graphql && ../../vendor/bin/phpstan analyse
112+ if [[ ${{ matrix.phpstan }} == "1" ]]; then cd modules/graphql && ../../vendor/bin/phpstan analyse; fi
107113
108114 - name : Run PHPCS
109115 run : |
You can’t perform that action at this time.
0 commit comments