Skip to content

Commit

Permalink
test(phpstan): Enable PHPStan run on PHP 8.0 (drupal-graphql#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
klausi committed Sep 21, 2023
1 parent 050b3f7 commit d3baa0a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.3', '7.4']
php-versions: ['7.3', '7.4', '8.0']
drupal-core: ['9.1.x']
phpstan: ['1']
include:
# Extra run to also test on latest Drupal 8 and PHP 7.2.
- php-versions: '7.2'
drupal-core: '8.9.x'
phpstan: '1'
# PHPStan does not work on PHP 8 yet for us.
- php-versions: '8.0'
drupal-core: '9.1.x'
phpstan: '0'
steps:
- name: Checkout Drupal core
uses: actions/checkout@v2
Expand Down Expand Up @@ -86,7 +80,7 @@ jobs:
webonyx/graphql-php:^14.8 \
drupal/typed_data:^1.0 \
drupal/redirect:^1.6 \
phpstan/phpstan:^0.12.70 \
phpstan/phpstan:^0.12.88 \
mglaman/phpstan-drupal:^0.12.8 \
phpstan/phpstan-deprecation-rules:^0.12.2 \
jangregor/phpstan-prophecy:^0.8 \
Expand All @@ -109,7 +103,7 @@ jobs:

- name: Run PHPStan
run: |
if [[ ${{ matrix.phpstan }} == "1" ]]; then cd modules/graphql && ../../vendor/bin/phpstan analyse; fi
cd modules/graphql && ../../vendor/bin/phpstan analyse
- name: Run PHPCS
run: |
Expand Down

0 comments on commit d3baa0a

Please sign in to comment.