Skip to content

Commit 5cc5ccb

Browse files
committed
Merge branch 'release/1.10.0'
2 parents 27d513a + 9c4f3b2 commit 5cc5ccb

File tree

179 files changed

+19192
-94547
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+19192
-94547
lines changed

.ahoy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ commands:
184184
ahoy cli vendor/bin/rector --clear-cache
185185
ahoy cli vendor/bin/phpcbf
186186
187+
lint-govcms:
188+
usage: Lint with shipshape.
189+
cmd: |
190+
ahoy cli sh -c "/usr/local/bin/shipshape -e"
191+
ahoy cli vendor/bin/phpstan --configuration=/app/phpstan-govcms.neon
192+
187193
test:
188194
usage: Run all tests.
189195
cmd: ahoy test-unit && ahoy test-kernel && ahoy test-functional && ahoy test-bdd
@@ -232,6 +238,20 @@ commands:
232238
ahoy confirm "Some committed files may become overwritten. Proceed?" &&
233239
./scripts/drevops/update-drevops.sh $@
234240
241+
bump-uikit:
242+
usage: Update CivicTheme UIKit to latest commit hash
243+
cmd: |
244+
export LATEST_UIKIT_HASH=$(curl -s https://api.github.com/repos/civictheme/uikit/commits/main | jq -r .sha)
245+
sed -i 's|civictheme/uikit#[a-f0-9]\{40\}|civictheme/uikit#'$LATEST_UIKIT_HASH'|' package.json
246+
sed -i 's|git+ssh://[email protected]/civictheme/uikit.git#[a-f0-9]\{40\}|git+ssh://[email protected]/civictheme/uikit.git#'$LATEST_UIKIT_HASH'|' package-lock.json
247+
npm install
248+
pushd web/themes/contrib/civictheme/
249+
sed -i 's|civictheme/uikit#[a-f0-9]\{40\}|civictheme/uikit#'$LATEST_UIKIT_HASH'|' package.json
250+
sed -i 's|civictheme/uikit#[a-f0-9]\{40\}|civictheme/uikit#'$LATEST_UIKIT_HASH'|' package-lock.json
251+
npm install
252+
popd
253+
echo "Bumped to latest commit on uikit#main https://github.com/civictheme/uikit/commit/${LATEST_UIKIT_HASH}"
254+
235255
local:
236256
usage: Custom local commands. See `ahoy local help`.
237257
cmd: |

.circleci/config.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ aliases:
6565
- &runner_config
6666
# Location of checked-out files within "runner" container.
6767
working_directory: &working_directory ~/project
68+
parameters:
69+
shipshape_run_audit:
70+
default: false
71+
type: boolean
6872
environment:
6973
DREVOPS_DEPLOY_SSH_FINGERPRINT: *deploy_ssh_fingerprint
7074
DEPLOY_SSH_FINGERPRINT1: *deploy_ssh_fingerprint1
@@ -146,7 +150,9 @@ job-build-isolated: &job-build-isolated
146150
sudo pecl install pcov
147151
echo "extension=pcov.so" | sudo tee -a /usr/local/etc/php/conf.d/pcov.ini
148152
echo "pcov.enabled=1" | sudo tee -a /usr/local/etc/php/conf.d/pcov.ini
149-
153+
- run:
154+
name: Install rsync
155+
command: sudo apt-get update && sudo apt-get install -y rsync
150156
- run:
151157
name: Assemble the codebase
152158
command: .devtools/assemble.sh
@@ -269,6 +275,13 @@ job-build: &job-build
269275
docker compose exec -T cli php -d memory_limit=-1 vendor/bin/behat --colors --strict --rerun --profile="${DREVOPS_CI_BEHAT_PROFILE:-default}" || \
270276
[ "${DREVOPS_CI_BEHAT_IGNORE_FAILURE:-0}" -eq 1 ]
271277
no_output_timeout: 30m
278+
# Optionally run Shipshape audit.
279+
- when:
280+
condition: << parameters.shipshape_run_audit >>
281+
steps:
282+
- run:
283+
name: Audit code with shipshape
284+
command: docker compose exec -T cli sh -c "/usr/local/bin/shipshape -e -o junit > /app/.logs/test_results/shipshape-results.xml" || [ "${DREVOPS_CI_SHIPSHAPE_IGNORE_FAILURE:-0}" -eq 1 ]
272285
- run:
273286
name: Process test logs and artifacts
274287
command: |
@@ -360,6 +373,10 @@ jobs:
360373
# GovCMS profile, no sub-theme.
361374
build-govcms:
362375
<<: *runner_config
376+
parameters:
377+
shipshape_run_audit:
378+
default: true
379+
type: boolean
363380
environment:
364381
DRUPAL_PROFILE: govcms
365382
CIVICTHEME_SUBTHEME_ACTIVATION_SKIP: 1
@@ -370,6 +387,10 @@ jobs:
370387
# GovCMS profile, sub-theme. Longest test run.
371388
build-govcms-subtheme:
372389
<<: *runner_config
390+
parameters:
391+
shipshape_run_audit:
392+
default: true
393+
type: boolean
373394
environment:
374395
DRUPAL_PROFILE: govcms
375396
DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE: 1

.docker/cli.dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/php-cli-drupal
1111
#
1212
# hadolint global ignore=DL3018
13-
FROM uselagoon/php-8.3-cli-drupal:24.10.0
13+
FROM uselagoon/php-8.3-cli-drupal:25.1.0
1414

1515
# Add missing variables.
1616
# @todo Remove once https://github.com/uselagoon/lagoon/issues/3121 is resolved.
@@ -45,7 +45,7 @@ ENV WEBROOT=${WEBROOT} \
4545

4646
# Adding more tools.
4747
RUN apk update \
48-
&& apk add pv python3 make gcc g++ diffutils ncurses pv tzdata \
48+
&& apk add pv python3 make gcc g++ diffutils ncurses pv tzdata rsync \
4949
&& ln -sf python3 /usr/bin/python \
5050
&& rm -rf /var/cache/apk/*
5151

@@ -63,6 +63,9 @@ RUN mkdir -p web/themes/contrib/civictheme \
6363
&& mkdir -p web/modules/custom/civictheme_dev \
6464
&& mkdir -p web/modules/custom/cs_generated_content
6565

66+
# Add shipshape binary so that we can execute audits.
67+
COPY --from=ghcr.io/salsadigitalauorg/shipshape:latest /usr/local/bin/shipshape /usr/local/bin/shipshape
68+
6669
# Copy files required for PHP dependencies resolution.
6770
# Note that composer.lock is not explicitly copied, allowing to run the stack
6871
# without existing lock file (this is not advisable, but allows to build

.docker/cli.onlytheme.dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/php-cli-drupal
1010
#
1111
# hadolint global ignore=DL3018
12-
FROM uselagoon/php-8.3-cli-drupal:24.10.0
12+
FROM uselagoon/php-8.3-cli-drupal:25.1.0
1313

1414
# Add missing variables.
1515
# @todo Remove once https://github.com/uselagoon/lagoon/issues/3121 is resolved.
@@ -62,6 +62,9 @@ RUN mkdir -p web/themes/contrib/civictheme \
6262
&& mkdir -p web/modules/custom/civictheme_dev \
6363
&& mkdir -p web/modules/custom/cs_generated_content
6464

65+
# Add shipshape binary so that we can execute audits.
66+
COPY --from=ghcr.io/salsadigitalauorg/shipshape:latest /usr/local/bin/shipshape /usr/local/bin/shipshape
67+
6568
# Copy files required for PHP dependencies resolution.
6669
# Note that composer.lock is not explicitly copied, allowing to run the stack
6770
# without existing lock file (this is not advisable, but allows to build

.docker/cli.sibling.dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/php-cli-drupal
1111
#
1212
# hadolint global ignore=DL3018
13-
FROM uselagoon/php-8.3-cli-drupal:24.10.0
13+
FROM uselagoon/php-8.3-cli-drupal:25.1.0
1414

1515
# Add missing variables.
1616
# @todo Remove once https://github.com/uselagoon/lagoon/issues/3121 is resolved.
@@ -63,6 +63,9 @@ RUN mkdir -p web/themes/contrib/civictheme \
6363
&& mkdir -p web/modules/custom/civictheme_dev \
6464
&& mkdir -p web/modules/custom/cs_generated_content
6565

66+
# Add shipshape binary so that we can execute audits.
67+
COPY --from=ghcr.io/salsadigitalauorg/shipshape:latest /usr/local/bin/shipshape /usr/local/bin/shipshape
68+
6669
# Copy files required for PHP dependencies resolution.
6770
# Note that composer.lock is not explicitly copied, allowing to run the stack
6871
# without existing lock file (this is not advisable, but allows to build

.docker/nginx-drupal.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ FROM ${CLI_IMAGE:-cli} as cli
99

1010
# @see https://hub.docker.com/r/uselagoon/nginx-drupal/tags?page=1
1111
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/nginx-drupal
12-
FROM uselagoon/nginx-drupal:24.5.1
12+
FROM uselagoon/nginx-drupal:25.1.0
1313

1414
# Webroot is used for Nginx docroot configuration.
1515
ARG WEBROOT=web

.docker/php.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FROM ${CLI_IMAGE:-cli} as cli
1010

1111
# @see https://hub.docker.com/r/uselagoon/php-8.3-fpm/tags
1212
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/php-fpm
13-
FROM uselagoon/php-8.3-fpm:24.10.0
13+
FROM uselagoon/php-8.3-fpm:25.1.0
1414

1515
RUN apk add --no-cache tzdata
1616

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ web/themes/*
1616
!web/themes/contrib/
1717
web/themes/contrib/*
1818
!web/themes/contrib/civictheme
19-
web/themes/contrib/civictheme/lib/uikit
2019
!web/themes/custom/
2120
web/themes/custom/*
2221
!web/themes/custom/.gitkeep

composer.json

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
"php": ">=8.2",
77
"composer/installers": "^2.1",
88
"cweagans/composer-patches": "^1.7",
9-
"drupal/core-composer-scaffold": "^10.3",
10-
"drupal/core-project-message": "^10",
11-
"drupal/core-recommended": "^10.3",
9+
"drupal/core-composer-scaffold": "^11",
10+
"drupal/core-project-message": "^11",
11+
"drupal/core-recommended": "^11",
12+
"drupal/mysql57": "^1.0",
1213
"drupal/search_api": "^1.30",
13-
"drush/drush": "^12",
14+
"drush/drush": "^13",
15+
"mglaman/composer-drupal-lenient": "^1.0",
1416
"oomphinc/composer-installers-extender": "^2.0",
1517
"vlucas/phpdotenv": "^5.1",
1618
"webflo/drupal-finder": "^1.2",
@@ -19,13 +21,13 @@
1921
},
2022
"require-dev": {
2123
"behat/behat": "^3.10",
22-
"behat/mink": "1.10",
23-
"behat/mink-selenium2-driver": "1.6",
24+
"behat/mink": "^1.12",
25+
"behat/mink-selenium2-driver": "*",
2426
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
2527
"drevops/behat-format-progress-fail": "^1",
2628
"drevops/behat-screenshot": "^1",
2729
"drevops/behat-steps": "^2",
28-
"drupal/core-dev": "^10.2",
30+
"drupal/core-dev": "^11",
2931
"drupal/drupal-extension": "^5",
3032
"ergebnis/composer-normalize": "^2.42",
3133
"friendsoftwig/twigcs": "^6.2",
@@ -84,12 +86,13 @@
8486
"drupal/core-composer-scaffold": true,
8587
"drupal/core-project-message": true,
8688
"ergebnis/composer-normalize": true,
89+
"mglaman/composer-drupal-lenient": true,
8790
"oomphinc/composer-installers-extender": true,
8891
"php-http/discovery": true,
8992
"phpstan/extension-installer": true,
9093
"pyrech/composer-changelogs": true,
91-
"wikimedia/composer-merge-plugin": true,
92-
"tbachert/spi": true
94+
"tbachert/spi": true,
95+
"wikimedia/composer-merge-plugin": true
9396
},
9497
"platform": {
9598
"php": "8.3.8"
@@ -161,7 +164,6 @@
161164
"replace": true,
162165
"require": [
163166
"web/themes/contrib/civictheme/composer.json",
164-
"web/modules/custom/civictheme_govcms/composer.json",
165167
"web/modules/custom/civictheme_admin/composer.json",
166168
"web/modules/custom/civictheme_content/composer.json",
167169
"web/modules/custom/civictheme_dev/composer.json",
@@ -174,6 +176,12 @@
174176
"patches": {
175177
"drupal/core": {
176178
"Builds failing on missing layout column plugin": "https://www.drupal.org/files/issues/2023-07-16/3204271-20-missing-layout-exception.patch"
179+
},
180+
"drupal/simple_sitemap": {
181+
"Error on installing / enabling simple_sitemap in D11: https://www.drupal.org/project/simple_sitemap/issues/3507718": "./patches/modules/simple_sitemap/fix-error-on-install.patch"
182+
},
183+
"drupal/styleguide": {
184+
"Create Drupal 11 test release: https://www.drupal.org/project/styleguide/issues/3505640": "https://git.drupalcode.org/project/styleguide/-/merge_requests/23.patch"
177185
}
178186
},
179187
"preserve-paths": [
@@ -190,7 +198,10 @@
190198
"web/sites/default/files",
191199
"web/robots.txt",
192200
"web/.htaccess"
193-
]
201+
],
202+
"drupal-lenient": {
203+
"allowed-list": ["drupal/styleguide"]
204+
}
194205
},
195206
"scripts": {
196207
"pre-install-cmd": [

0 commit comments

Comments
 (0)