Skip to content

Commit e863c3c

Browse files
committed
ci(PHP): Test against 8.5 on CI
Signed-off-by: Joas Schilling <[email protected]>
1 parent e91840a commit e863c3c

File tree

9 files changed

+17
-9
lines changed

9 files changed

+17
-9
lines changed

.github/workflows/lint-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
strategy:
4949
matrix:
50-
php-versions: [ '8.2', '8.3', '8.4' ]
50+
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
5151

5252
name: php-lint
5353

.github/workflows/phpunit-mariadb.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@ jobs:
6060
fail-fast: false
6161
matrix:
6262
php-versions: ['8.2']
63-
mariadb-versions: ['10.3', '10.6', '10.11', '11.4', '11.8']
63+
mariadb-versions: ['10.6', '10.11', '11.4', '11.8']
6464
include:
6565
- php-versions: '8.3'
6666
mariadb-versions: '10.11'
6767
coverage: ${{ github.event_name != 'pull_request' }}
6868
- php-versions: '8.4'
6969
mariadb-versions: '11.8'
70+
- php-versions: '8.5'
71+
mariadb-versions: '11.8'
7072

7173
name: MariaDB ${{ matrix.mariadb-versions }} (PHP ${{ matrix.php-versions }}) - database tests
7274

.github/workflows/phpunit-memcached.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
strategy:
5757
fail-fast: false
5858
matrix:
59-
php-versions: ['8.3', '8.4']
59+
php-versions: ['8.3', '8.4', '8.5']
6060
include:
6161
- php-versions: '8.2'
6262
coverage: ${{ github.event_name != 'pull_request' }}

.github/workflows/phpunit-mysql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
coverage: ${{ github.event_name != 'pull_request' }}
6868
- mysql-versions: '8.4'
6969
php-versions: '8.4'
70+
- mysql-versions: '8.4'
71+
php-versions: '8.5'
7072

7173
name: MySQL ${{ matrix.mysql-versions }} (PHP ${{ matrix.php-versions }}) - database tests
7274

.github/workflows/phpunit-nodb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
strategy:
6060
fail-fast: false
6161
matrix:
62-
php-versions: ['8.3', '8.4']
62+
php-versions: ['8.3', '8.4', '8.5']
6363
include:
6464
- php-versions: '8.2'
6565
coverage: ${{ github.event_name != 'pull_request' }}

.github/workflows/phpunit-oci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
php-versions: '8.3'
7070
- oracle-versions: '23'
7171
php-versions: '8.4'
72+
- oracle-versions: '23'
73+
php-versions: '8.5'
7274

7375
name: Oracle ${{ matrix.oracle-versions }} (PHP ${{ matrix.php-versions }}) - database tests
7476

.github/workflows/phpunit-pgsql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868
coverage: ${{ github.event_name != 'pull_request' }}
6969
- php-versions: '8.4'
7070
postgres-versions: '18'
71+
- php-versions: '8.5'
72+
postgres-versions: '18'
7173

7274
name: PostgreSQL ${{ matrix.postgres-versions }} (PHP ${{ matrix.php-versions }}) - database tests
7375

.github/workflows/phpunit-sqlite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
strategy:
6060
fail-fast: false
6161
matrix:
62-
php-versions: ['8.3', '8.4']
62+
php-versions: ['8.3', '8.4', '8.5']
6363
include:
6464
- php-versions: '8.2'
6565
coverage: ${{ github.event_name != 'pull_request' }}

lib/versioncheck.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
8-
// Show warning if a PHP version below 8.1 is used,
8+
// Show warning if a PHP version below 8.2 is used,
99
if (PHP_VERSION_ID < 80200) {
1010
http_response_code(500);
1111
echo 'This version of Nextcloud requires at least PHP 8.2<br/>';
1212
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
1313
exit(1);
1414
}
1515

16-
// Show warning if >= PHP 8.5 is used as Nextcloud is not compatible with >= PHP 8.5 for now
17-
if (PHP_VERSION_ID >= 80500) {
16+
// Show warning if >= PHP 8.6 is used as Nextcloud is not compatible with >= PHP 8.6 for now
17+
if (PHP_VERSION_ID >= 80600) {
1818
http_response_code(500);
19-
echo 'This version of Nextcloud is not compatible with PHP>=8.5.<br/>';
19+
echo 'This version of Nextcloud is not compatible with PHP>=8.6.<br/>';
2020
echo 'You are currently running ' . PHP_VERSION . '.';
2121
exit(1);
2222
}

0 commit comments

Comments
 (0)