Skip to content

Commit

Permalink
Drupal 11 testing #677
Browse files Browse the repository at this point in the history
  • Loading branch information
saidatom committed Aug 6, 2024
1 parent 522d538 commit ea6bdec
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 30 deletions.
50 changes: 23 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,52 @@ jobs:
strategy:
fail-fast: false
matrix:
php_version: ["7.4", "8.0", "8.1", "8.2"]
drupal_version: ["9", "10.0", "10.1"]
exclude:
include:
- php_version: "7.4"
drupal_version: "10.0"
- php_version: "7.4"
drupal_version: "10.1"
- php_version: "8.0"
drupal_version: "10.0"
- php_version: "8.0"
drupal_version: "10.1"
- php_version: "8.2"
drupal_version: "9"
- php_version: "8.2"
drupal_version: "10"
- php_version: "8.3"
drupal_version: "10"
- php_version: "8.3"
drupal_version: "11"
env:
PHP_VERSION: ${{ matrix.php_version }}
DRUPAL_VERSION: ${{ matrix.drupal_version }}
DOCKER_USER_ID: "1001"
steps:
- name: clone
uses: actions/checkout@v3
- name: docker-compose up -d
run: docker-compose up -d
- name: docker compose up -d
run: docker compose up -d
- name: npm install
run: docker-compose exec -T -u node node npm install
run: docker compose exec -T -u node node npm install
- name: composer self-update
run: docker-compose exec -T php composer self-update
run: docker compose exec -T php composer self-update
- name: composer require
run: docker-compose exec -u ${DOCKER_USER_ID} -T php composer require --no-interaction --dev --no-update drupal/core:^${DRUPAL_VERSION} drupal/core-composer-scaffold:^${DRUPAL_VERSION}
run: docker compose exec -u ${DOCKER_USER_ID} -T php composer require --no-interaction --dev --no-update drupal/core:^${DRUPAL_VERSION} drupal/core-composer-scaffold:^${DRUPAL_VERSION}
- name: composer install
run: docker-compose exec -T php composer install
run: docker compose exec -T php composer install
- name: drush site-install
run: docker-compose exec -T php ./vendor/bin/drush --yes --root=drupal site-install --db-url=mysql://drupal:drupal@db/drupal --debug
run: docker compose exec -T php ./vendor/bin/drush --yes --root=drupal site-install --db-url=mysql://drupal:drupal@db/drupal --debug
- name: copy fixtures
run: docker-compose exec -T php cp -r fixtures/drupal/modules/behat_test drupal/modules
run: docker compose exec -T php cp -r fixtures/drupal/modules/behat_test drupal/modules
- name: drush pmu page_cache
run: docker-compose exec -T php ./vendor/bin/drush --yes --root=drupal pmu page_cache,big_pipe
run: docker compose exec -T php ./vendor/bin/drush --yes --root=drupal pmu page_cache,big_pipe
- name: drush en behat_test
run: docker-compose exec -T php ./vendor/bin/drush --yes --root=drupal en behat_test
run: docker compose exec -T php ./vendor/bin/drush --yes --root=drupal en behat_test
- name: npm test
run: docker-compose exec -T -u node node npm test
run: docker compose exec -T -u node node npm test
- name: composer test
run: docker-compose exec -T php composer test
run: docker compose exec -T php composer test
- name: behat --profile=blackbox
run: docker-compose exec -T php vendor/bin/behat -fprogress --strict
run: docker compose exec -T php vendor/bin/behat -fprogress --strict
- name: behat --profile=drupal9
if: "${{ matrix.drupal_version == '9'}}"
run: docker-compose exec -T php cat && docker-compose exec -T php vendor/bin/behat -fprogress --profile=drupal9 --strict
run: docker compose exec -T php cat && docker compose exec -T php vendor/bin/behat -fprogress --profile=drupal9 --strict
- name: behat --profile=drupal10
if: "${{ matrix.drupal_version != '9'}}"
run: docker-compose exec -T php cat && docker-compose exec -T php vendor/bin/behat -fprogress --profile=drupal10 --strict
run: docker compose exec -T php cat && docker compose exec -T php vendor/bin/behat -fprogress --profile=drupal10 --strict
- name: behat --profile=drupal_https
if: "${{ matrix.drupal_version != '9'}}"
run: docker-compose exec -T php cat && docker-compose exec -T php vendor/bin/behat -fprogress --profile=drupal_https --strict
run: docker compose exec -T php cat && docker compose exec -T php vendor/bin/behat -fprogress --profile=drupal_https --strict
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "2"
services:

php:
Expand Down Expand Up @@ -74,7 +73,7 @@ services:
- "traefik.enable=false"

db:
image: wodby/mariadb:10.3-3.8.4
image: wodby/mariadb:10.6-3.28.3
stop_grace_period: 30s
environment:
MYSQL_ROOT_PASSWORD: password
Expand Down
2 changes: 1 addition & 1 deletion fixtures/drupal/modules/behat_test/behat_test.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: Behat test
type: module
description: 'Test feature exposing basic configuration for Behat Drupal extension test.'
package: Test
core_version_requirement: ^9 || ^10
core_version_requirement: ^9 || ^10 || ^11
dependencies:
- drupal:language

0 comments on commit ea6bdec

Please sign in to comment.