From 3fa301037f892323edb5cdab41f51a75a0d2c948 Mon Sep 17 00:00:00 2001 From: Joe Corall <joe@libops.io> Date: Tue, 23 Apr 2024 06:02:51 -0400 Subject: [PATCH] SIMPLETEST_BASE_URL --- .github/workflows/build-2.x.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-2.x.yml b/.github/workflows/build-2.x.yml index 2c33d8e3..18b72f0b 100644 --- a/.github/workflows/build-2.x.yml +++ b/.github/workflows/build-2.x.yml @@ -18,8 +18,7 @@ jobs: # This workflow contains a single job called "build" build: env: - SIMPLETEST_BASE_URL: http://127.0.0.1:8283 - SIMPLETEST_DB: "sqlite://drupal:drupal@127.0.0.1/drupal" + SIMPLETEST_BASE_URL: http://host.docker.internal:8282 DRUPAL_VERSION: ${{ matrix.drupal-version }} SCRIPT_DIR: ${{ github.workspace }}/islandora_ci DRUPAL_DIR: /opt/drupal @@ -62,6 +61,7 @@ jobs: image: selenium/standalone-firefox:3.141 ports: - 4444:4444 + options: --add-host=host.docker.internal:host-gateway # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -126,11 +126,6 @@ jobs: - name: PHPUNIT tests run: | - cd $DRUPAL_DIR - cp web/sites/default/default.settings.php web/sites/default/settings.php - ./vendor/bin/drush si --db-url=sqlite://drupal:drupal@127.0.0.1:3306/drupal --yes - ./vendor/bin/drush runserver 127.0.0.1:8283 & - until curl -s 127.0.0.1:8283; do true; done > /dev/null cd $DRUPAL_DIR/web/core $DRUPAL_DIR/vendor/bin/phpunit --verbose --testsuite "${{ matrix.test-suite }}" if [ "${{ matrix.test-suite }}" = "functional-javascript" ]; then