Skip to content

Commit 181cafd

Browse files
authored
Merge pull request #6 from itk-dev/feature/matrix
Added version matrix
2 parents ab69258 + 08a4b2c commit 181cafd

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

.github/workflows/pr.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ jobs:
1010
matrix:
1111
drupal-version:
1212
- 10
13-
# Installing Drupal 11 does not yet work with sqlite.
14-
# - 11
13+
- 11
14+
php-version:
15+
- 8.3
16+
- 8.4
1517
script-name:
1618
- phpstan
1719
- rector
1820
steps:
1921
- uses: actions/checkout@v4
2022
- name: Drupal ${{ matrix.drupal-version }}/${{ matrix.script-name }}
2123
run: |
22-
DRUPAL_VERSION=${{ matrix.drupal-version }} ./scripts/${{ matrix.script-name }}
24+
DRUPAL_VERSION=${{ matrix.drupal-version }} PHP_VERSION=${{ matrix.php-version }} ./scripts/${{ matrix.script-name }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
* [PR-6](https://github.com/itk-dev/drupal_admin_message/pull/6)
11+
Added version matrix
12+
1013
## [1.1.0] - 2025-05-21
1114

1215
* [PR-4](https://github.com/itk-dev/drupal_admin_message/pull/4)

scripts/base

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,12 @@ trap teardown EXIT
7878
setup() {
7979
compose down --remove-orphans
8080
compose pull
81-
compose up --detach --remove-orphans --wait
81+
compose up --detach --remove-orphans --wait --build
8282
composer config --no-plugins allow-plugins true
8383
composer config extra.merge-plugin.include "$module_path/composer.json"
8484
composer require drush/drush wikimedia/composer-merge-plugin
85-
# Reset Drupal installation
86-
compose exec drupal sh -c 'find . -name .ht.sqlite -ls -delete; rm web/sites/default/settings.php' || true
87-
drush site:install --db-url='sqlite://sites/default/files/.ht.sqlite?module=sqlite' --yes
88-
drush pm:install "$module_name"
85+
drush --yes site:install --db-url='mysql://root:root@mariadb/drupal'
86+
drush --yes pm:install "$module_name"
8987
}
9088

9189
teardown() {

scripts/compose.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
services:
44
drupal:
5-
# We cannot yet install Drupal 11 with sqlite (cf. https://www.drupal.org/project/drupal/issues/3346338)
6-
image: drupal:${DRUPAL_VERSION:-10}-apache
5+
image: drupal:${DRUPAL_VERSION:-11}-php${PHP_VERSION:-8.4}
76
ports:
87
- 80
98
volumes:
@@ -19,3 +18,17 @@ services:
1918
environment:
2019
# Let the module path, i.e. the mounted path, be known in the container
2120
MODULE_PATH: web/modules/contrib/${MODULE_NAME:-drupal-module}
21+
depends_on:
22+
mariadb:
23+
condition: service_healthy
24+
25+
mariadb:
26+
image: mariadb
27+
healthcheck:
28+
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
29+
start_period: 10s
30+
interval: 10s
31+
timeout: 5s
32+
retries: 3
33+
environment:
34+
MARIADB_ROOT_PASSWORD: root

0 commit comments

Comments
 (0)