Skip to content

Commit c3f3208

Browse files
committed
test(github): Enable PHP 8.0 testing (drupal-graphql#1166)
1 parent 7363343 commit c3f3208

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/testing.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -80,8 +86,8 @@ jobs:
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: |

0 commit comments

Comments
 (0)