diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 68cd1ec..cacd260 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,6 +32,9 @@ jobs: - name: Create LocalGov Drupal project run: composer create-project --stability dev localgovdrupal/localgov-project ./html "${{ matrix.localgov-version }}" + - name: Obtain all dev dependencies for LocalGov Drupal + run: jq --raw-output '.packages[] | select(.name | startswith("localgovdrupal/")) | ."require-dev" | values | to_entries[] | @sh "\(.key):\(.value)"' ./html/composer.lock | sort | uniq | xargs composer --working-dir=./html require --dev --no-interaction + - name: Start Docker environment run: docker-compose up -d diff --git a/docker-compose.yml b/docker-compose.yml index 52de74b..456550b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ services: environment: SIMPLETEST_BASE_URL: 'http://drupal' SIMPLETEST_DB: 'mysql://database:database@database/database' - MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", { "chromeOptions": { "w3c": false } }, "http://chromedriver:4444/wd/hub"]' + MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName": "chrome", "goog:chromeOptions": {"args": ["--disable-gpu","--headless", "--no-sandbox", "--disable-dev-shm-usage"]}}, "http://chromedriver:9515"]' SYMFONY_DEPRECATIONS_HELPER: weak extra_hosts: - "group-a1.drupal:127.0.0.1" @@ -50,11 +50,18 @@ services: retries: 100 chromedriver: - image: selenium/standalone-chrome:106.0 + image: drupalci/webdriver-chromedriver:production container_name: chromedriver - environment: - START_XVBF: 'false' + ulimits: + core: + soft: -1 + hard: -1 ports: - "4444:4444" - volumes: - - /dev/shm:/dev/shm + - "9515:9515" + entrypoint: + - chromedriver + - "--log-path=/tmp/chromedriver.log" + - "--verbose" + - "--allowed-ips=" + - "--allowed-origins=*"