Skip to content

Commit c6db9fe

Browse files
authored
Add a CI job that fails on deprecations (#12188)
1 parent 86d847e commit c6db9fe

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,40 @@ jobs:
124124
path: "coverage*.xml"
125125

126126

127+
phpunit-deprecations:
128+
name: "PHPUnit (fail on deprecations)"
129+
runs-on: "ubuntu-24.04"
130+
131+
steps:
132+
- name: "Checkout"
133+
uses: "actions/checkout@v5"
134+
with:
135+
fetch-depth: 2
136+
137+
- name: "Install PHP"
138+
uses: "shivammathur/setup-php@v2"
139+
with:
140+
php-version: "8.5"
141+
extensions: "apcu, pdo, sqlite3"
142+
coverage: "pcov"
143+
ini-values: "zend.assertions=1, apc.enable_cli=1"
144+
145+
- name: "Allow dev dependencies"
146+
run: composer config minimum-stability dev
147+
148+
- name: "Install dependencies with Composer"
149+
uses: "ramsey/composer-install@v3"
150+
with:
151+
composer-options: "--ignore-platform-req=php+"
152+
dependency-versions: "highest"
153+
154+
- name: "Run PHPUnit"
155+
run: "vendor/bin/phpunit -c ci/github/phpunit/sqlite3.xml --fail-on-deprecation"
156+
env:
157+
ENABLE_SECOND_LEVEL_CACHE: 0
158+
ENABLE_NATIVE_LAZY_OBJECTS: 1
159+
160+
127161
phpunit-postgres:
128162
name: "PHPUnit with PostgreSQL"
129163
runs-on: "ubuntu-22.04"

0 commit comments

Comments
 (0)