Skip to content

Commit 73d0913

Browse files
authored
Merge branch 'trunk' into remove-ie-conditionals
2 parents 9541e3c + ff6c5fa commit 73d0913

File tree

264 files changed

+6867
-6058
lines changed

Some content is hidden

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

264 files changed

+6867
-6058
lines changed

.github/workflows/local-docker-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
fail-fast: false
9393
matrix:
9494
os: [ ubuntu-24.04 ]
95-
memcached: [ false ]
95+
memcached: [ false, true ]
9696
php: ${{ fromJSON( needs.build-test-matrix.outputs.php-versions ) }}
9797
db-version: ${{ fromJSON( needs.build-test-matrix.outputs.mysql-versions ) }}
9898

.github/workflows/performance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
strategy:
102102
fail-fast: false
103103
matrix:
104-
memcached: [ false ]
104+
memcached: [ false, true ]
105105
multisite: [ true, false ]
106106
subject: ${{ fromJson( needs.determine-matrix.outputs.subjects ) }}
107107
with:
@@ -119,7 +119,7 @@ jobs:
119119
strategy:
120120
fail-fast: false
121121
matrix:
122-
memcached: [ false ]
122+
memcached: [ false, true ]
123123
multisite: [ true, false ]
124124
# A matrix value is needed in the 'name' directive for proper grouping in the GitHub UI.
125125
label: [ Compare ]

.github/workflows/phpunit-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ on:
3030
- 'Gruntfile.js'
3131
# These files configure Composer. Changes could affect the outcome.
3232
- 'composer.*'
33-
# This files affect the phpunit tests. Changes could affect the outcome.
33+
# These files affect the phpunit tests. Changes could affect the outcome.
3434
- 'tests/phpunit/**'
35+
- 'tests/phpunit/multisite.xml'
36+
- 'phpunit.xml.dist'
3537
# Confirm any changes to relevant workflow files.
3638
- '.github/workflows/phpunit-tests.yml'
3739
- '.github/workflows/reusable-phpunit-tests-*.yml'

.github/workflows/reusable-end-to-end-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ jobs:
8181
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
8282
persist-credentials: false
8383

84-
- name: Create a Docker override file
85-
if: ${{ contains( fromJSON('["8.3", "8.4"]'), inputs.php-version ) }}
86-
env:
87-
PHP_VERSION: ${{ inputs.php-version }}
88-
run: cp "tools/local-env/php-$PHP_VERSION-docker-compose.override.yml" docker-compose.override.yml
89-
9084
- name: Set up Node.js
9185
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
9286
with:

.github/workflows/reusable-performance-test-v2.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ jobs:
121121
fetch-depth: ${{ github.event_name == 'workflow_dispatch' && '2' || '1' }}
122122
persist-credentials: false
123123

124-
- name: Create a Docker override file
125-
if: ${{ contains( fromJSON('["8.3", "8.4"]'), inputs.php-version ) }}
126-
env:
127-
PHP_VERSION: ${{ inputs.php-version }}
128-
run: cp "tools/local-env/php-$PHP_VERSION-docker-compose.override.yml" docker-compose.override.yml
129-
130124
- name: Set up Node.js
131125
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
132126
with:

.github/workflows/reusable-phpunit-tests-v1.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ jobs:
8787
name: PHP ${{ inputs.php }} / ${{ inputs.multisite && ' Multisite' || 'Single site' }}${{ inputs.split_slow && ' slow tests' || '' }}${{ inputs.memcached && ' with memcached' || '' }}
8888
runs-on: ${{ inputs.os }}
8989
timeout-minutes: 20
90+
permissions:
91+
contents: read
9092

9193
steps:
9294
- name: Configure environment variables

.github/workflows/reusable-phpunit-tests-v2.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ jobs:
8989
name: PHP ${{ inputs.php }} / ${{ inputs.multisite && ' Multisite' || 'Single Site' }}${{ inputs.split_slow && ' slow tests' || '' }}${{ inputs.memcached && ' with memcached' || '' }}
9090
runs-on: ${{ inputs.os }}
9191
timeout-minutes: 20
92+
permissions:
93+
contents: read
9294

9395
steps:
9496
- name: Configure environment variables

.github/workflows/reusable-phpunit-tests-v3.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,6 @@ jobs:
136136
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
137137
persist-credentials: false
138138

139-
- name: Create a Docker override file
140-
if: ${{ contains( fromJSON('["8.3", "8.4"]'), inputs.php ) }}
141-
env:
142-
PHP_VERSION: ${{ inputs.php }}
143-
run: cp "tools/local-env/php-${{ env.PHP_VERSION }}-docker-compose.override.yml" docker-compose.override.yml
144-
145139
- name: Set up Node.js
146140
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
147141
with:
@@ -234,7 +228,7 @@ jobs:
234228

235229
# __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist.
236230
- name: Run (Xdebug) tests
237-
if: ${{ inputs.php != '8.4' && ! inputs.phpunit-test-groups && ! inputs.coverage-report }}
231+
if: ${{ ! inputs.phpunit-test-groups && ! inputs.coverage-report }}
238232
continue-on-error: ${{ inputs.allow-errors }}
239233
run: LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__
240234

.github/workflows/reusable-test-core-build-process.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@ on:
1717
type: 'string'
1818
default: 'src'
1919
test-emoji:
20-
description: 'Whether to run the grunt precommit:emoji script.'
20+
description: 'Whether to run the precommit:emoji Grunt script.'
2121
required: false
2222
type: 'boolean'
2323
default: true
24+
test-certificates:
25+
description: 'Whether to run the certificate related Grunt scripts.'
26+
required: false
27+
type: 'boolean'
28+
default: false
2429
save-build:
2530
description: 'Whether to save a ZIP of built WordPress as an artifact.'
2631
required: false
@@ -69,6 +74,21 @@ jobs:
6974
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
7075
persist-credentials: false
7176

77+
# This date is used to ensure that the PHPCS cache is cleared at least once every week.
78+
# http://man7.org/linux/man-pages/man1/date.1.html
79+
- name: "Get last Monday's date"
80+
id: get-date
81+
if: ${{ inputs.test-certificates }}
82+
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
83+
84+
# Since Composer dependencies are installed using `composer update` and no lock file is in version control,
85+
# passing a custom cache suffix ensures that the cache is flushed at least once per week.
86+
- name: Install Composer dependencies
87+
if: ${{ inputs.test-certificates }}
88+
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # v3.1.1
89+
with:
90+
custom-cache-suffix: ${{ steps.get-date.outputs.date }}
91+
7292
- name: Set up Node.js
7393
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
7494
with:
@@ -91,6 +111,10 @@ jobs:
91111
env:
92112
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93113

114+
- name: Ensure certificates files are updated
115+
if: ${{ inputs.test-certificates }}
116+
run: npm run grunt copy:certificates && npm run grunt build:certificates
117+
94118
- name: Build WordPress to run from ${{ inputs.directory }}
95119
run: npm run ${{ inputs.directory == 'src' && 'build:dev' || 'build' }}
96120

.github/workflows/reusable-test-local-docker-environment-v1.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ jobs:
9191
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
9292
persist-credentials: false
9393

94-
- name: Create a Docker override file
95-
if: ${{ contains( fromJSON('["8.3", "8.4"]'), inputs.php ) }}
96-
env:
97-
PHP_VERSION: ${{ inputs.php }}
98-
run: cp "tools/local-env/php-$PHP_VERSION-docker-compose.override.yml" docker-compose.override.yml
99-
10094
- name: Set up Node.js
10195
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
10296
with:

0 commit comments

Comments
 (0)