Skip to content

Commit c369977

Browse files
authored
Merge branch 'backdrop:1.x' into 1.x
2 parents ca85252 + d3b9aec commit c369977

File tree

3,216 files changed

+7673
-1479
lines changed

Some content is hidden

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

3,216 files changed

+7673
-1479
lines changed

.cspell/backdrop.dic

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ datelimits
8383
dbinfo
8484
dblog
8585
DDTHH
86+
dependee
87+
dependees
8688
derf
8789
devmajor
8890
devminor
@@ -102,6 +104,7 @@ editunblock
102104
elementtype
103105
enddate
104106
endskip
107+
Enregistrer
105108
entityreference
106109
éøïвβ
107110
errorcode
@@ -143,6 +146,7 @@ formfocusborder
143146
formtest
144147
foundkeys
145148
fourthcolumn
149+
Fozzie
146150
freso
147151
fromto
148152
fter
@@ -186,11 +190,13 @@ ieid
186190
iend
187191
ignoretag
188192
iinet
193+
imagecreatefrom
189194
imagefield
190195
imageto
191196
indigoxela
192197
infourl
193198
innodb
199+
instantiatable
194200
isid
195201
istart
196202
jahwohl
@@ -223,6 +229,7 @@ lished
223229
Lisu
224230
litespeed
225231
localzone
232+
lundi
226233
LXSS
227234
manytoone
228235
marzo
@@ -235,6 +242,7 @@ merlinofchaos
235242
metacharacters
236243
meus
237244
microweights
245+
milli
238246
mimeheaders
239247
minadjustment
240248
mindate
@@ -249,6 +257,7 @@ mouton
249257
moutons
250258
msgbox
251259
multibundle
260+
multipage
252261
multisites
253262
Műveletek
254263
myclass
@@ -313,6 +322,7 @@ oldserver
313322
oldtext
314323
oneof
315324
onmediaerror
325+
onoff
316326
opensans
317327
Optionchecker
318328
otherjob
@@ -324,6 +334,7 @@ pagenum
324334
pagerpieces
325335
phptemplate
326336
phpwiki
337+
plid
327338
plids
328339
pneum
329340
Ponedjeljak
@@ -341,7 +352,11 @@ Punycode
341352
queryor
342353
quicktime
343354
Quieligo
355+
rawurlencoded
344356
ratis
357+
rawurldecode
358+
rawurlencode
359+
rawurlencoded
345360
readwrite
346361
realelement
347362
refclass
@@ -384,6 +399,7 @@ softtabstop
384399
someplugin
385400
sometable
386401
sourcedir
402+
spacebar
387403
stackoverflow
388404
statiya
389405
stdobj
@@ -418,6 +434,7 @@ tempstore
418434
testconfig
419435
testfiles
420436
testviews
437+
textgroup
421438
textgroups
422439
textinput
423440
themeable
@@ -439,10 +456,15 @@ triptych
439456
typeflag
440457
Üidentifier
441458
unaggregated
459+
unaliased
460+
unconfigured
442461
uncustomized
443462
undeletable
463+
undraggable
444464
unescapes
445465
unescaping
466+
unextracted
467+
unflagged
446468
unhighlight
447469
unhighlights
448470
unioned
@@ -454,6 +476,10 @@ unmunged
454476
unmunging
455477
unnested
456478
unpackage
479+
unpermissioned
480+
unpromoted
481+
unrendered
482+
unshortened
457483
uploadimage
458484
uploadwidget
459485
USERAGENT
@@ -466,7 +492,9 @@ vendredi
466492
VERIFYHOST
467493
VERIFYPEER
468494
verygreatbackdropmodule
495+
viewmode
469496
VIEWNAME
497+
viewmode
470498
watchdog
471499
WCAG
472500
wday

.cspell/cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"/core/misc/opensans/",
5858
"/core/misc/smartmenus/",
5959
"/core/misc/ui/",
60+
"/core/modules/ckeditor5/lib/ckeditor5/",
6061
"/core/modules/search/tests/UnicodeTest.txt",
6162
"/core/modules/system/system.tar.inc",
6263
"/core/themes/bartik/color/preview.html",
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: "Set up webserver"
2+
description: "Set up a webserver with PHP and a database"
3+
inputs:
4+
php-version:
5+
description: "PHP version to install"
6+
required: true
7+
database-version:
8+
description: "Database (mysql/mariadb) version to install"
9+
required: true
10+
outputs: {}
11+
12+
runs:
13+
using: "composite"
14+
steps:
15+
- name: Prepare for database
16+
shell: bash
17+
run: |
18+
# The database runs as user "runner".
19+
sudo mkdir /dev/shm/mysql_tmp
20+
sudo chown runner:runner /dev/shm/mysql_tmp
21+
22+
- name: Install database server
23+
uses: shogo82148/actions-setup-mysql@v1
24+
with:
25+
mysql-version: ${{ inputs.database-version }}
26+
root-password: 'root'
27+
my-cnf: |
28+
datadir=/dev/shm/mysql
29+
tmpdir=/dev/shm/mysql_tmp
30+
auto-start: true
31+
32+
- name: Verify setup and create database
33+
shell: bash
34+
run: |
35+
echo -e '[client]\nuser = root\npassword = root\nhost = 127.0.0.1' > ~/.my.cnf
36+
mysql -e 'SELECT version()\G'
37+
mysql -e 'CREATE DATABASE backdrop;'
38+
39+
- name: Setup PHP
40+
uses: shivammathur/setup-php@v2
41+
with:
42+
php-version: ${{ inputs.php-version }}
43+
coverage: none
44+
tools: none
45+
46+
- name: Disable mod_php if necessary
47+
if: ${{ inputs.php-version == '5.6' }}
48+
shell: bash
49+
run: if [ $(sudo apache2ctl -M | grep -c 'php.*module') -eq 1 ]; then sudo a2dismod php5.6; fi
50+
51+
- name: Finish webserver setup
52+
shell: bash
53+
run: |
54+
# Set up apache with php-fpm.
55+
sudo cp .github/misc/default.conf /etc/apache2/sites-available/000-default.conf
56+
sudo sed -i -e "s/_PHP_VERSION_/${{ inputs.php-version }}/" /etc/apache2/sites-available/000-default.conf
57+
# Setup php-fpm, this script is intentionally not executable by default.
58+
chmod 700 .github/misc/setup-php-fpm.sh
59+
./.github/misc/setup-php-fpm.sh ${{ inputs.php-version }}
60+
# This should be a redirect to the installer:
61+
echo 'Verify webserver setup'
62+
curl -sI 'http://localhost/'

.github/misc/settings.local.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
* @file
44
* Settings applied during automated test runs.
55
*
6-
* @see .github/workflows/functional-tests.yml
6+
* @see .github/workflows/simpletest.yml
77
*/
88

99
// Disable sending of telemetry data from GitHub Action runners.
1010
$settings['telemetry_enabled'] = FALSE;
1111

1212
// Turn off Drupal compatibility layer for tests.
1313
$settings['backdrop_drupal_compatibility'] = FALSE;
14+
15+
// Use a consistent config directory.
16+
$config_directories['active'] = 'files/config/active';
17+
$config_directories['staging'] = 'files/config/staging';

.github/misc/setup-php-fpm.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ sudo sed -i -e 's/user = www-data/user = runner/' \
1717
-e 's/pm.start_servers = 2/pm.start_servers = 4/' \
1818
-e 's/pm.min_spare_servers = 1/pm.min_spare_servers = 2/' \
1919
-e 's/pm.max_spare_servers = 3/pm.max_spare_servers = 4/' \
20-
ls /etc/php/*/fpm/pool.d/www.conf
20+
/etc/php/*/fpm/pool.d/www.conf
2121

2222
# Let above changes take effect and setup Apache to work with php-fpm.
2323
sudo systemctl restart php${1}-fpm.service
2424
sudo apt-get -q install libapache2-mod-fcgid
2525
sudo a2enmod rewrite proxy fcgid proxy_fcgi
26-
sudo systemctl start apache2.service
26+
sudo systemctl restart apache2.service
27+
# This prevents the "denied (filesystem path '/home/runner/work') because search
28+
# permissions are missing on a component of the path" problem.
29+
sudo chmod 751 /home/runner
2730

2831
exit 0

.github/workflows/functional-tests.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: SimpleTest (Database Config)
2+
on:
3+
pull_request:
4+
branches: [1.*]
5+
jobs:
6+
simpletest-db-config:
7+
name: SimpleTest
8+
runs-on: ubuntu-22.04
9+
# Skip this job if the PR title contains "[skip tests]".
10+
if: ${{ !contains(github.event.pull_request.title, '[skip tests]') }}
11+
timeout-minutes: 20
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php-versions: ['8.3']
16+
database-versions: ['mariadb-10.3']
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Set up webserver
23+
uses: ./.github/actions/set-up-webserver
24+
with:
25+
php-version: ${{ matrix.php-versions }}
26+
database-version: ${{ matrix.database-versions }}
27+
28+
- name: Install Backdrop
29+
run: |
30+
cp ./.github/misc/settings.local.php .
31+
32+
# Set the config storage class to use the database.
33+
echo "\$settings['config_active_class'] = 'ConfigDatabaseStorage';" >> settings.local.php
34+
echo "\$config_directories['active'] = NULL;" >> settings.local.php
35+
36+
core/scripts/install.sh --db-url=mysql://root:[email protected]/backdrop
37+
38+
- name: Run tests
39+
run: |
40+
# Run a subset of the total test suite for configuration management.
41+
core/scripts/run-tests.sh --force --cache --verbose --color --group Configuration 2>&1
42+
43+
- name: Save Test Results
44+
uses: actions/upload-artifact@v4
45+
if: always()
46+
with:
47+
name: simpletest-db-config-${{ matrix.php-versions }}
48+
path: files/simpletest/verbose

0 commit comments

Comments
 (0)