From 015e7720f3f22c2f21a7024eb8e9837e436ae4cf Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 29 May 2024 20:05:54 +1000 Subject: [PATCH 1/3] Added site information to CI. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 765a25567..ab3a29285 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,6 +80,9 @@ jobs: - name: Install site run: ./vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite + - name: Show site information + run: ./vendor/bin/drush status + - name: Start server run: | ./vendor/bin/drush runserver "$SIMPLETEST_BASE_URL" & From 288bb0a2998e7b0f13961f313909559853be693e Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Thu, 30 May 2024 06:28:27 +1000 Subject: [PATCH 2/3] Fixed CI using dev dependencies. --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab3a29285..820a9b91c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,11 +70,15 @@ 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 + 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 }} + # Remove the line below once the package is out of `alpha`. + [[ ${{ matrix.drupal-release }} == 'beta' ]] && composer require chi-teck/drupal-code-generator:^4@alpha composer --verbose update - name: Install site @@ -89,7 +93,7 @@ jobs: until curl -s "$SIMPLETEST_BASE_URL"; do true; done > /dev/null - name: Run a single unit test to verify the testing setup - run: ./vendor/bin/phpunit -c ./web/core $(pwd)/web/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php + run: ./vendor/bin/phpunit -c ./web/core "$(pwd)/web/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php" # Using outdated Composer version to test the Composer version constraint. test-composer: From df6816c18c8c16f00e8995e8227946786b35250c Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Thu, 30 May 2024 07:12:24 +1000 Subject: [PATCH 3/3] Added `alpha` testing. --- .github/workflows/ci.yml | 2 +- composer.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 820a9b91c..276caab5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: matrix: php-versions: ['8.3'] - drupal-release: ['beta', 'dev'] + drupal-release: ['alpha', 'beta', 'dev'] composer-channel: ['stable', 'snapshot'] steps: diff --git a/composer.json b/composer.json index 714c64be1..208a89ab3 100644 --- a/composer.json +++ b/composer.json @@ -12,15 +12,15 @@ "require": { "composer/installers": "^2.1", "cweagans/composer-patches": "^1.7", - "drupal/core-composer-scaffold": "^11@beta", - "drupal/core-recommended": "^11@beta", + "drupal/core-composer-scaffold": "^11@alpha", + "drupal/core-recommended": "^11@alpha", "drush/drush": "^13@beta", "oomphinc/composer-installers-extender": "^2.0", "vlucas/phpdotenv": "^5.1", "webflo/drupal-finder": "^1.2" }, "require-dev": { - "drupal/core-dev": "^11@beta", + "drupal/core-dev": "^11@alpha", "ergebnis/composer-normalize": "^2.42" }, "conflict": {