From 2c61f48dd2896cb09c0bd84d72de11c5eb583b57 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Thu, 30 May 2024 06:28:27 +1000 Subject: [PATCH] Fixed CI using dev dependencies. --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab3a29285..f298fd891 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,11 +70,13 @@ jobs: test -d web/libraries/dropzone - name: Override Drupal version to dev for testing dev releases - if: matrix.drupal-release == 'dev' + if: matrix.drupal-release == 'dev' || matrix.drupal-release == 'beta' run: | - composer config minimum-stability dev - composer --verbose require --no-update drupal/core-recommended:11.0.x-dev - composer --verbose require --no-update --dev drupal/core-dev:11.0.x-dev + [[ ${{ matrix.drupal-release }} == 'dev' ]] && composer config minimum-stability ${{ matrix.drupal-release }} + composer config prefer-stable false + composer --verbose require --no-update drupal/core-composer-scaffold:^11@${{ matrix.drupal-release }} + composer --verbose require --no-update drupal/core-recommended:^11@${{ matrix.drupal-release }} + composer --verbose require --no-update --dev drupal/core-dev:^11@${{ matrix.drupal-release }} composer --verbose update - name: Install site