Skip to content

Commit ecdd568

Browse files
committed
Try testing for deprecations when running on PHP 8.5
1 parent 2e723de commit ecdd568

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎.github/workflows/continuous-integration.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
matrix:
1616
operating-system: ['ubuntu-latest']
1717
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
18+
include:
19+
- php-version: '8.5'
20+
phpunit-flags: '--display-deprecations --fail-on-deprecation'
21+
1822

1923
name: CI on ${{ matrix.operating-system }} with PHP ${{ matrix.php-version }}
2024

@@ -38,17 +42,17 @@ jobs:
3842
uses: actions/cache@v6
3943
with:
4044
path: ${{ steps.composer-cache.outputs.dir }}
41-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
45+
key: ${{ runner.os }}-composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
4246
restore-keys: |
43-
${{ runner.os }}-composer-
47+
${{ runner.os }}-composer-${{ matrix.php-version }}
4448
4549
- name: Install dependencies with Composer
4650
run: |
4751
composer update --no-interaction --prefer-dist --no-progress ${{ matrix.composer-flags }}
4852
4953
- name: Run PHPUnit for Composer install
5054
run: |
51-
vendor/bin/phpunit tests
55+
vendor/bin/phpunit ${{ matrix.phpunit-flags }} tests
5256
5357
- name: Install PEAR
5458
run: |
@@ -63,4 +67,4 @@ jobs:
6367
- name: Run PHPUnit for PEAR install
6468
run: |
6569
cd `pear config-get test_dir`
66-
${GITHUB_WORKSPACE}/vendor/bin/phpunit ./HTML_QuickForm2
70+
${GITHUB_WORKSPACE}/vendor/bin/phpunit ${{ matrix.phpunit-flags }} ./HTML_QuickForm2

0 commit comments

Comments
 (0)