From eda1e721c442e5b0b5ea37b0fe9f0dc65f5a9d53 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 21 Mar 2022 20:10:21 +0100 Subject: [PATCH] Add PHP8.1 support Signed-off-by: Christoph Wurst --- .github/workflows/lint-php.yml | 2 +- .github/workflows/phpunit.yml | 11 ++++++----- appinfo/info.xml | 2 +- composer.json | 3 +++ composer.lock | 8 +++++--- 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml index c1d72cc6..68ae194d 100644 --- a/.github/workflows/lint-php.yml +++ b/.github/workflows/lint-php.yml @@ -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 diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 98a546c6..ae3799b1 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -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 diff --git a/appinfo/info.xml b/appinfo/info.xml index 57087b07..de40eaef 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -38,7 +38,7 @@ https://raw.githubusercontent.com/nextcloud/screenshots/main/apps/Contacts/contacts.png - + diff --git a/composer.json b/composer.json index fc5607ec..aaa18d71 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index 8dc702eb..1dd9f0f9 100644 --- a/composer.lock +++ b/composer.lock @@ -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" }