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" },