Skip to content

Commit d3baa0a

Browse files
committed
test(phpstan): Enable PHPStan run on PHP 8.0 (drupal-graphql#1211)
1 parent 050b3f7 commit d3baa0a

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/testing.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,12 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-versions: ['7.3', '7.4']
16+
php-versions: ['7.3', '7.4', '8.0']
1717
drupal-core: ['9.1.x']
18-
phpstan: ['1']
1918
include:
2019
# Extra run to also test on latest Drupal 8 and PHP 7.2.
2120
- php-versions: '7.2'
2221
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'
2822
steps:
2923
- name: Checkout Drupal core
3024
uses: actions/checkout@v2
@@ -86,7 +80,7 @@ jobs:
8680
webonyx/graphql-php:^14.8 \
8781
drupal/typed_data:^1.0 \
8882
drupal/redirect:^1.6 \
89-
phpstan/phpstan:^0.12.70 \
83+
phpstan/phpstan:^0.12.88 \
9084
mglaman/phpstan-drupal:^0.12.8 \
9185
phpstan/phpstan-deprecation-rules:^0.12.2 \
9286
jangregor/phpstan-prophecy:^0.8 \
@@ -109,7 +103,7 @@ jobs:
109103

110104
- name: Run PHPStan
111105
run: |
112-
if [[ ${{ matrix.phpstan }} == "1" ]]; then cd modules/graphql && ../../vendor/bin/phpstan analyse; fi
106+
cd modules/graphql && ../../vendor/bin/phpstan analyse
113107
114108
- name: Run PHPCS
115109
run: |

0 commit comments

Comments
 (0)