Skip to content

Commit bde834d

Browse files
authored
test(phpstan): Enable PHPStan on PHP 8 by disabling PHP opcache (#1262)
1 parent e211199 commit bde834d

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/testing.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,12 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-versions: ['7.3', '7.4']
17-
phpstan: ['1']
16+
php-versions: ['7.3', '7.4', '8.0', '8.1']
1817
drupal-core: ['9.3.x']
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 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'
3122
steps:
3223
- name: Checkout Drupal core
3324
uses: actions/checkout@v2
@@ -64,7 +55,6 @@ jobs:
6455
# Disable Xdebug for better performance.
6556
coverage: none
6657
extensions: ${{ env.extensions }}
67-
ini-values: opcache.enable_cli=1
6858

6959
- name: Get composer cache directory
7060
id: composercache
@@ -112,7 +102,7 @@ jobs:
112102

113103
- name: Run PHPStan
114104
run: |
115-
if [[ ${{ matrix.phpstan }} == "1" ]]; then cd modules/graphql && ../../vendor/bin/phpstan analyse; fi
105+
cd modules/graphql && ../../vendor/bin/phpstan analyse
116106
117107
- name: Run PHPCS
118108
run: |

0 commit comments

Comments
 (0)