Skip to content

Commit 1a5906c

Browse files
committed
DEBUG
1 parent f64c278 commit 1a5906c

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/project.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v5
1919

20+
# https://github.com/mxschmitt/action-tmate?tab=readme-ov-file#manually-triggered-debug
21+
# Enable tmate debugging if debug logging is enabled (cf.
22+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#runner-context)
23+
- name: Setup tmate session
24+
uses: mxschmitt/action-tmate@v3
25+
with:
26+
limit-access-to-actor: false
27+
if: 1 == runner.debug
28+
2029
- run: |
2130
./scripts/code-analysis
2231

scripts/compose.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
build:
77
context: ../
88
dockerfile_inline: |
9-
FROM drupal:${DRUPAL_VERSION:-10}-apache
9+
FROM drupal:${DRUPAL_VERSION:-10}-php${PHP_VERSION:-8.3}-apache
1010
1111
COPY ./composer.json web/modules/${MODULE_NAME?}/
1212
@@ -34,7 +34,8 @@ services:
3434
&& composer --no-plugins config extra.merge-plugin.merge-extra --json true \
3535
&& composer --no-plugins config extra.merge-plugin.merge-extra-deep --json true \
3636
&& composer --no-plugins config extra.merge-plugin.include "web/modules/${MODULE_NAME?}/composer.json" \
37-
&& composer require mglaman/composer-drupal-lenient wikimedia/composer-merge-plugin --with-all-dependencies
37+
&& composer require mglaman/composer-drupal-lenient wikimedia/composer-merge-plugin --with-all-dependencies \
38+
&& composer update --with-all-dependencies
3839
3940
# Patch to make COMPOSER_IGNORE_PLATFORM_REQS=1 have effect
4041
# https://github.com/wikimedia/composer-merge-plugin/pull/253
@@ -46,7 +47,7 @@ services:
4647
4748
# Install a minimal Drupal site.
4849
# https://www.drush.org/13.x/commands/site_install/
49-
RUN drush --yes site:install --db-url=sqlite://sites/default/files/.ht.sqlite?module=sqlite minimal -vvv
50+
RUN vendor/bin/drush --yes site:install --db-url=sqlite://sites/default/files/.ht.sqlite?module=sqlite minimal -vvv
5051
5152
ports:
5253
- 80

0 commit comments

Comments
 (0)