Add PHP8.1 support

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2022-03-21 20:10:21 +01:00
parent e4e5217fa2
commit eda1e721c4
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
5 changed files with 16 additions and 10 deletions

View File

@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["7.4", "8.0"]
php-versions: ["7.4", "8.0", "8.1"]
name: php-lint

View File

@ -38,7 +38,7 @@ jobs:
path: apps/${{ env.APP_NAME }}
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit
@ -82,8 +82,9 @@ jobs:
databases: ['mysql']
server-versions: ['stable21', 'stable22', 'stable23', 'master']
include:
- php-versions: 7.4
server-versions: stable23
- php-versions: '8.1'
databases: 'mysql'
server-versions: master
name: php${{ matrix.php-versions }}-${{ matrix.databases }}-${{ matrix.server-versions }}
@ -110,7 +111,7 @@ jobs:
path: apps/${{ env.APP_NAME }}
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit
@ -176,7 +177,7 @@ jobs:
path: apps/${{ env.APP_NAME }}
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit

View File

@ -38,7 +38,7 @@
<screenshot>https://raw.githubusercontent.com/nextcloud/screenshots/main/apps/Contacts/contacts.png</screenshot>
<dependencies>
<php min-version="7.3" max-version="8.0" />
<php min-version="7.3" max-version="8.1" />
<nextcloud min-version="21" max-version="24" />
</dependencies>

View File

@ -14,6 +14,9 @@
"test:unit": "phpunit -c phpunit.xml --fail-on-warning",
"test:integration": "phpunit -c phpunit.integration.xml --fail-on-warning"
},
"require": {
"php": ">=7.3 <=8.1"
},
"require-dev": {
"christophwurst/nextcloud_testing": "^0.12.4",
"nextcloud/coding-standard": "^0.5.0",

8
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "b5a4281028c39a616597c799ed0b4d9d",
"content-hash": "dba5bbe3402206e45570ddf832c2c0d5",
"packages": [],
"packages-dev": [
{
@ -4220,10 +4220,12 @@
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform": {
"php": ">=7.3 <=8.1"
},
"platform-dev": [],
"platform-overrides": {
"php": "7.3"
},
"plugin-api-version": "2.1.0"
"plugin-api-version": "2.2.0"
}