From 1e480cfb112892a54f4480565e355c9d53c260ac Mon Sep 17 00:00:00 2001 From: Kedar Khaire Date: Tue, 1 Oct 2024 18:22:56 +0530 Subject: [PATCH] Skipped Drupal check & rules version updated to 4.x for Drupal 10.3 (#1083) --- .github/workflows/php.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 5348422f..d3174614 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -38,6 +38,7 @@ jobs: drupal-core: # Should update the following as the minimum supported version from Drupal.org - "10.2.x" + - "10.3.x" instance-type: - "Edge" - "X" @@ -94,7 +95,6 @@ jobs: composer config --no-plugins allow-plugins.cweagans/composer-patches true composer config --no-plugins allow-plugins.php-http/discovery true composer config minimum-stability dev - composer require 'drupal/rules:3.x-dev@dev' composer require wikimedia/composer-merge-plugin composer config --json extra.merge-plugin.require '["modules/contrib/apigee_edge/composer.json"]' composer config platform.php ${{ matrix.php-version }} @@ -104,6 +104,20 @@ jobs: composer require --dev drupal/classy:^1.0 composer config --no-plugins allow-plugins.drupal/console-extend-plugin true + - name: "Allow plugins and dev dependencies for Drupal 10.2" + if: ${{ matrix.drupal-core == '10.2.x' }} + run: | + cd drupal + composer require 'drupal/rules:3.x-dev@dev' + composer update --with-all-dependencies + + - name: "Allow plugins and dev dependencies for Drupal 10.3" + if: ${{ matrix.drupal-core == '10.3.x' }} + run: | + cd drupal + composer require 'drupal/rules:^4.0' + composer update --with-all-dependencies + # Install drupal using minimal installation profile and enable the module. - name: Install Drupal run: | @@ -124,7 +138,8 @@ jobs: echo "APIGEE_EDGE_ENDPOINT=$APIGEE_EDGE_HYBRID_ENDPOINT" >> $GITHUB_ENV composer show > composer-show.txt - - name: "Drupal check" + - name: "Drupal check for Drupal 10.2" + if: ${{ matrix.drupal-core == '10.2.x' }} run: | cd drupal vendor/bin/drupal-check modules/contrib/apigee_edge