Skip to content

Commit cf738da

Browse files
authored
Add ./vendor/bin/phpunit --check-php-configuration to CI (#1074)
1 parent 8b2671a commit cf738da

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
with:
9393
php-version: ${{ matrix.php-version }}
9494
extensions: none, ctype, curl, dom, iconv, json, mbstring, opcache, openssl, simplexml, tokenizer, xml, xmlwriter
95-
ini-values: pcov.directory=$GITHUB_WORKSPACE/src, zend.assertions=1
95+
ini-values: display_errors=On, display_startup_errors=On, error_reporting=-1, pcov.directory=$GITHUB_WORKSPACE/src, zend.assertions=1
9696
coverage: ${{ (matrix.calculate-coverage && 'pcov') || 'none' }}
9797

9898
- id: composer-cache
@@ -125,6 +125,9 @@ jobs:
125125
- if: matrix.install-phpunit-12
126126
run: composer apply-php_unit_attributes
127127

128+
- if: matrix.php-version != '7.4' && matrix.php-version != '8.0'
129+
run: ./vendor/bin/phpunit --check-php-configuration
130+
128131
- run: ./vendor/bin/phpunit ${{ matrix.phpunit-flags }}
129132
env:
130133
FAST_LINT_TEST_CASES: ${{ matrix.FAST_LINT_TEST_CASES }}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@composer --working-dir=.dev-tools --quiet install --classmap-authoritative"
5858
],
5959
"test": [
60+
"phpunit --check-php-configuration",
6061
"phpunit"
6162
],
6263
"verify": [

0 commit comments

Comments
 (0)