Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Changelog", this file is a reverse-chronological list of merged pull requests.

## Open PR's

- [PR-165](https://github.com/itk-dev/devops_itkdev-docker/pull/165) - 2026-11-20 -
Drupal `site.yaml` workflow: check that the config in `config/sync` is up to
date. The `install-site` job exports the config and fails if the export
changes, adds or deletes a file
- [PR-162](https://github.com/itk-dev/devops_itkdev-docker/pull/162) - 2026-11-02 -
Switched the Drupal, Symfony and Drupal module templates to PHP 8.5. The
`drupal-10` template stays on PHP 8.4, as Drupal 10 does not support 8.5
Expand Down
8 changes: 7 additions & 1 deletion docs/github-actions-templates.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- DO NOT EDIT THIS FILE!

It was automatically created at 2025-06-12T14:50:42+02:00
It was automatically created at 2026-11-20T14:04:45+01:00
by task/scripts/github-documentation-update
based on /app/task/scripts/../templates/github-actions-templates.md
-->
Expand Down Expand Up @@ -173,6 +173,11 @@ in `composer.json`:
Checks that site can be installed and can be updated (from base branch on
pull request).

Also checks that the config in `config/sync` is up to date: the job exports
the config of the installed site, and fails if the export changes any file
in `config/sync`. To fix it, install the site from config, run `drush
config:export` and commit the changes.

#### Assumptions

1. A docker compose service named `phpfpm` can be run and `composer` can be
Expand All @@ -181,6 +186,7 @@ pull request).
services and the default settings match connection credentials for these
services.
3. The Drupal site can be installed from existing config.
4. The config sync directory is `config/sync`.

---

Expand Down
14 changes: 14 additions & 0 deletions github/workflows/drupal/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
### Checks that site can be installed and can be updated (from base branch on
### pull request).
###
### Also checks that the config in `config/sync` is up to date: the job exports
### the config of the installed site, and fails if the export changes any file
### in `config/sync`. To fix it, install the site from config, run `drush
### config:export` and commit the changes.
###
### #### Assumptions
###
### 1. A docker compose service named `phpfpm` can be run and `composer` can be
Expand All @@ -15,6 +20,7 @@
### services and the default settings match connection credentials for these
### services.
### 3. The Drupal site can be installed from existing config.
### 4. The config sync directory is `config/sync`.

name: Drupal

Expand Down Expand Up @@ -59,6 +65,14 @@ jobs:
# Install the site from config
docker compose exec phpfpm vendor/bin/drush site:install --existing-config --yes

- name: Check that config is up to date
run: |
# Export the config of the installed site. "git add" also includes new
# and deleted files in the diff.
docker compose exec phpfpm vendor/bin/drush config:export --yes
git add --all config/sync
git diff --cached --exit-code config/sync

- name: Show site URL
run: |
echo $(docker compose exec phpfpm vendor/bin/drush --uri=http://$(docker compose port nginx 8080) user:login)
Expand Down