From 2d25767bdefcf658e3105a3158d7e20c16efa3ba Mon Sep 17 00:00:00 2001 From: pookmish Date: Thu, 29 Aug 2024 13:00:36 -0700 Subject: [PATCH] Run tests for Drupal 11 to see when it will be ready (#805) --- .github/workflows/tests.yml | 131 ++++++++++++++++++++++++++++++--- config/sync/core.extension.yml | 1 - 2 files changed, 119 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e5fec5715..918a0a7ac 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,10 +10,10 @@ jobs: strategy: fail-fast: false container: - image: pookmish/drupal8ci:latest + image: pookmish/drupal8ci:php8.3 services: mysql: - image: mysql:5.7 + image: mysql:8.0 env: MYSQL_DATABASE: drupal MYSQL_USER: drupal @@ -36,7 +36,39 @@ jobs: uses: actions/upload-artifact@v4 if: failure() with: - name: unit-tests-results + name: d10-unit-tests-results + path: /var/www/html/artifacts + phpunit_d11: + name: PHPUnit Coverage Tests Drupal 11 + runs-on: ubuntu-latest + container: + image: pookmish/drupal8ci:php8.3 + services: + mysql: + image: mysql:8.0 + env: + MYSQL_DATABASE: drupal + MYSQL_USER: drupal + MYSQL_PASSWORD: drupal + MYSQL_ROOT_PASSWORD: drupal + ports: + - 33306:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + steps: + - uses: actions/checkout@v4 + with: + path: project + - name: Build project + env: + CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} + run: | + composer global require su-sws/stanford-caravan:11.x-dev + ~/.config/composer/vendor/bin/sws-caravan phpunit /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --with-coverage + - name: Save Test Results + uses: actions/upload-artifact@v4 + if: failure() + with: + name: d11-unit-tests-results path: /var/www/html/artifacts acceptance: name: Codeception Acceptance Tests @@ -49,11 +81,11 @@ jobs: DRUPAL_DATABASE_PASSWORD: drupal DRUPAL_DATABASE_HOST: mysql container: - image: pookmish/drupal8ci:latest + image: pookmish/drupal8ci:php8.3 options: '--network-alias drupal8ci' services: mysql: - image: mysql:5.7 + image: mysql:8.0 env: MYSQL_DATABASE: drupal MYSQL_USER: drupal @@ -76,7 +108,7 @@ jobs: uses: actions/upload-artifact@v4 if: always() with: - name: acceptance-tests-results + name: d10-acceptance-tests-results path: /var/www/html/artifacts functional: name: Codeception Functional Tests @@ -89,14 +121,14 @@ jobs: DRUPAL_DATABASE_PASSWORD: drupal DRUPAL_DATABASE_HOST: mysql container: - image: pookmish/drupal8ci:latest + image: pookmish/drupal8ci:php8.3 options: '--network-alias=drupal8ci' services: selenium: - image: selenium/standalone-chrome:115.0 + image: selenium/standalone-chrome options: '--shm-size="2g"' mysql: - image: mysql:5.7 + image: mysql:8.0 env: MYSQL_DATABASE: drupal MYSQL_USER: drupal @@ -110,8 +142,6 @@ jobs: with: path: project - name: Run tests - env: - STANFORD_ENCRYPT: ${{ secrets.STANFORD_ENCRYPT }}= run: | composer global require su-sws/stanford-caravan:10.x-dev ~/.config/composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=functional @@ -119,5 +149,82 @@ jobs: uses: actions/upload-artifact@v4 if: always() with: - name: functional-tests-results + name: d10-functional-tests-results + path: /var/www/html/artifacts + acceptance_d11: + name: Codeception Acceptance Tests Drupal 11 + runs-on: ubuntu-latest + strategy: + fail-fast: false + env: + DRUPAL_DATABASE_NAME: drupal + DRUPAL_DATABASE_USERNAME: drupal + DRUPAL_DATABASE_PASSWORD: drupal + DRUPAL_DATABASE_HOST: mysql + container: + image: pookmish/drupal8ci:php8.3 + options: '--network-alias drupal8ci' + services: + mysql: + image: mysql:8.0 + env: + MYSQL_DATABASE: drupal + MYSQL_USER: drupal + MYSQL_PASSWORD: drupal + MYSQL_ROOT_PASSWORD: drupal + ports: + - 33306:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + steps: + - uses: actions/checkout@v4 + with: + path: project + - name: Run tests + run: | + composer global require su-sws/stanford-caravan:11.x-dev + ~/.config/composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=acceptance + - name: Save Test Results + uses: actions/upload-artifact@v4 + if: always() + with: + name: d11-acceptance-tests-results + path: /var/www/html/artifacts + functional_d11: + name: Codeception Functional Tests Drupal 11 + runs-on: ubuntu-latest + env: + DRUPAL_DATABASE_NAME: drupal + DRUPAL_DATABASE_USERNAME: drupal + DRUPAL_DATABASE_PASSWORD: drupal + DRUPAL_DATABASE_HOST: mysql + container: + image: pookmish/drupal8ci:php8.3 + options: '--network-alias=drupal8ci' + services: + selenium: + image: selenium/standalone-chrome + options: '--shm-size="2g"' + mysql: + image: mysql:8.0 + env: + MYSQL_DATABASE: drupal + MYSQL_USER: drupal + MYSQL_PASSWORD: drupal + MYSQL_ROOT_PASSWORD: drupal + ports: + - 33306:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + steps: + - uses: actions/checkout@v4 + with: + path: project + - name: Run tests + run: | + composer global require su-sws/stanford-caravan:11.x-dev + ~/.config/composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=functional + - name: Save Test Results + uses: actions/upload-artifact@v4 + if: always() + with: + name: d11-functional-tests-results path: /var/www/html/artifacts diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 211fc4301..8f3b1517d 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -111,7 +111,6 @@ module: jumpstart_ui: 0 key: 0 layout_builder: 0 - layout_builder_expose_all_field_blocks: 0 layout_builder_modal: 0 layout_builder_restrictions: 0 layout_discovery: 0