From 02190ad7f1d9846dbe6624e9cdcc6e78389e6b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dezs=C5=91=20BICZ=C3=93?= Date: Mon, 8 Apr 2024 15:04:54 +0200 Subject: [PATCH] Flag PHP 8.2 support --- .github/workflows/tests.yml | 8 +++++++- composer.json | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc548d0..4849178 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,7 +48,7 @@ jobs: strategy: fail-fast: false matrix: - php_image: ["wodby/drupal-php:8.1-dev"] + php_image: ["wodby/drupal-php:8.1-dev", "wodby/drupal-php:8.2-dev"] db_image: ["wodby/mariadb:10.5"] # TODO Get version range from composer.json dynamically. drupal_version: ["^10.1"] @@ -64,6 +64,12 @@ jobs: repository: Pronovix/docker-drupal-dev path: ./drupal-dev + # TODO Remove this after Drupal QA got a PHP 8.2 compatible release. + - name: Drupal QA workaround + if: matrix.php_image == 'wodby/drupal-php:8.2-dev' + run: | + export COMPOSER_IGNORE_PLATFORM_REQ=php+ + - name: Setup environment run: | mkdir build diff --git a/composer.json b/composer.json index 6daca61..2648e9a 100644 --- a/composer.json +++ b/composer.json @@ -69,6 +69,9 @@ "zaporylie/composer-drupal-optimizations": true }, "optimize-autoloader": true, + "platform": { + "php": "8.1.0" + }, "sort-packages": true, "vendor-dir": "build/vendor" },