diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 888b3ee..e2f68e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,6 @@ on: jobs: tests: name: Tests - runs-on: ubuntu-latest strategy: @@ -22,7 +21,33 @@ jobs: run: docker-compose -f docker-compose.yml build --pull --build-arg BASE_IMAGE_TAG=${{ matrix.drupal_version }} drupal - name: Run unit tests run: docker-compose -f docker-compose.yml run -u www-data drupal phpunit --no-coverage --group=${{ matrix.module }} --exclude-group=${{ matrix.module }}_functional --configuration=/var/www/html/phpunit.xml + + + tests-functional: + name: Functional Tests + runs-on: ubuntu-latest + + strategy: + matrix: + drupal_version: [, '9.5', '10.0'] + module: ['entity_to_text'] + + steps: + - uses: actions/checkout@v4 + - run: docker-compose -f docker-compose.yml pull --include-deps drupal + - name: Build the docker-compose stack + run: docker-compose -f docker-compose.yml build --pull --build-arg BASE_IMAGE_TAG=${{ matrix.drupal_version }} drupal continue-on-error: ${{ matrix.experimental }} + - name: Up a persistent Docker Container + run: docker-compose -f docker-compose.yml up -d drupal + - name: wait on Docker to be ready, especially Apache that takes many seconds to be up + run: docker-compose exec -T drupal wait-for-it drupal:80 -t 60 + - name: wait on Docker to be ready, especially MariaDB that takes many seconds to be up + run: docker-compose exec -T drupal wait-for-it db:3306 -t 60 + - name: Bootstrap Drupal + run: docker-compose -f docker-compose.yml exec -T -u www-data drupal drush site-install standard --db-url="mysql://drupal:drupal@db/drupal" -y + - name: Run tests + run: docker-compose -f docker-compose.yml exec -T -u www-data drupal phpunit --no-coverage --group=${{ matrix.module }}_functional --configuration=/var/www/html/phpunit.xml upgrade-status: name: Upgrade Status diff --git a/modules/entity_to_text_tika/tests/src/Functional/InstallUninstallTest.php b/modules/entity_to_text_tika/tests/src/Functional/InstallUninstallTest.php index 041135f..31252bb 100644 --- a/modules/entity_to_text_tika/tests/src/Functional/InstallUninstallTest.php +++ b/modules/entity_to_text_tika/tests/src/Functional/InstallUninstallTest.php @@ -9,6 +9,7 @@ * * @group entity_to_text * @group entity_to_text_tika + * @group entity_to_text_functional * @group entity_to_text_tika_functional */ class InstallUninstallTest extends ModuleTestBase { diff --git a/modules/entity_to_text_tika/tests/src/Functional/RequirementsTest.php b/modules/entity_to_text_tika/tests/src/Functional/RequirementsTest.php index 2908775..91cd008 100644 --- a/modules/entity_to_text_tika/tests/src/Functional/RequirementsTest.php +++ b/modules/entity_to_text_tika/tests/src/Functional/RequirementsTest.php @@ -9,6 +9,7 @@ * * @group entity_to_text * @group entity_to_text_tika + * @group entity_to_text_functional * @group entity_to_text_tika_functional */ class RequirementsTest extends BrowserTestBase {