Skip to content

Commit 774a0ae

Browse files
authored
Merge branch 'WordPress:trunk' into trunk
2 parents b9de99b + e94cd29 commit 774a0ae

189 files changed

Lines changed: 4917 additions & 2921 deletions

File tree

Some content is hidden

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

.env

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,22 @@ LOCAL_DIR=src
1717
# The PHP version to use. Valid options are 'latest', and '{version}-fpm'.
1818
LOCAL_PHP=latest
1919

20-
# Whether or not to enable XDebug.
20+
# Whether or not to enable Xdebug.
2121
LOCAL_PHP_XDEBUG=false
2222

23+
##
24+
# The Xdebug features to enable.
25+
#
26+
# By default, the following features are enabled in the local environment:
27+
# - Development helpers (`develop`).
28+
# - Step debugging (`debug`).
29+
#
30+
# To generate a code coverage report, `coverage` mode must be active.
31+
#
32+
# For a full list of accepted values, see https://xdebug.org/docs/all_settings#mode.
33+
##
34+
LOCAL_PHP_XDEBUG_MODE=develop,debug
35+
2336
# Whether or not to enable Memcached.
2437
LOCAL_PHP_MEMCACHED=false
2538

.github/workflows/coding-standards.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ jobs:
6363

6464
steps:
6565
- name: Checkout repository
66-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
66+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
6767

6868
- name: Set up PHP
69-
uses: shivammathur/setup-php@d37cc3048580de06099c81ded417530716a0d7ab # v2.18.0
69+
uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
7070
with:
7171
php-version: '7.4'
7272
coverage: none
@@ -84,7 +84,7 @@ jobs:
8484
run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
8585

8686
- name: Cache PHPCS scan cache
87-
uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1
87+
uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
8888
with:
8989
path: .cache/phpcs.json
9090
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}
@@ -115,10 +115,10 @@ jobs:
115115
#
116116
# Performs the following steps:
117117
# - Checks out the repository.
118-
# - Logs debug information about the runner container.
119-
# - Installs NodeJS 14.
118+
# - Logs debug information about the GitHub Action runner.
119+
# - Installs NodeJS.
120120
# - Logs updated debug information.
121-
# _ Installs NPM dependencies using install-changed to hash the `package.json` file.
121+
# _ Installs NPM dependencies.
122122
# - Run the WordPress JSHint checks.
123123
# - Ensures version-controlled files are not modified or deleted.
124124
jshint:
@@ -131,7 +131,7 @@ jobs:
131131

132132
steps:
133133
- name: Checkout repository
134-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
134+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
135135

136136
- name: Log debug information
137137
run: |
@@ -141,7 +141,7 @@ jobs:
141141
svn --version
142142
143143
- name: Install NodeJS
144-
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
144+
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
145145
with:
146146
node-version-file: '.nvmrc'
147147
cache: npm

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: End-to-end Tests
22

33
on:
4-
# The end to end test suite was introduced in WordPress 5.3.
4+
# The end-to-end test suite was introduced in WordPress 5.3.
55
push:
66
branches:
77
- trunk
@@ -31,11 +31,11 @@ jobs:
3131
# Runs the end-to-end test suite.
3232
#
3333
# Performs the following steps:
34-
# - Set environment variables.
34+
# - Sets environment variables.
3535
# - Checks out the repository.
36-
# - Logs debug information about the runner container.
37-
# - Installs NodeJS 14.
38-
# _ Installs NPM dependencies using install-changed to hash the `package.json` file.
36+
# - Logs debug information about the GitHub Action runner.
37+
# - Installs NodeJS.
38+
# _ Installs NPM dependencies.
3939
# - Builds WordPress to run from the `build` directory.
4040
# - Starts the WordPress Docker container.
4141
# - Logs general debug information.
@@ -57,7 +57,7 @@ jobs:
5757
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
5858
5959
- name: Checkout repository
60-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
60+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
6161

6262
- name: Log debug information
6363
run: |
@@ -71,7 +71,7 @@ jobs:
7171
locale -a
7272
7373
- name: Install NodeJS
74-
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
74+
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
7575
with:
7676
node-version-file: '.nvmrc'
7777
cache: npm

.github/workflows/javascript-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
#
4343
# Performs the following steps:
4444
# - Checks out the repository.
45-
# - Logs debug information about the runner container.
46-
# - Installs NodeJS 14.
45+
# - Logs debug information about the GitHub Action runner.
46+
# - Installs NodeJS.
4747
# - Logs updated debug information.
48-
# _ Installs NPM dependencies using install-changed to hash the `package.json` file.
48+
# _ Installs NPM dependencies.
4949
# - Run the WordPress QUnit tests.
5050
# - Ensures version-controlled files are not modified or deleted.
5151
test-js:
@@ -56,7 +56,7 @@ jobs:
5656

5757
steps:
5858
- name: Checkout repository
59-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
59+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
6060

6161
- name: Log debug information
6262
run: |
@@ -66,7 +66,7 @@ jobs:
6666
svn --version
6767
6868
- name: Install NodeJS
69-
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
69+
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
7070
with:
7171
node-version-file: '.nvmrc'
7272
cache: npm

.github/workflows/php-compatibility.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757

5858
steps:
5959
- name: Checkout repository
60-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
60+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
6161

6262
- name: Set up PHP
63-
uses: shivammathur/setup-php@d37cc3048580de06099c81ded417530716a0d7ab # v2.18.0
63+
uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
6464
with:
6565
php-version: '7.4'
6666
coverage: none
@@ -78,7 +78,7 @@ jobs:
7878
run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
7979

8080
- name: Cache PHP compatibility scan cache
81-
uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1
81+
uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
8282
with:
8383
path: .cache/phpcompat.json
8484
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }}

.github/workflows/phpunit-tests.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ jobs:
3838
# This prevents workflow runs from being marked as "failed" when only PHP 8.1 fails.
3939
#
4040
# Performs the following steps:
41-
# - Set environment variables.
41+
# - Sets environment variables.
4242
# - Sets up the environment variables needed for testing with memcached (if desired).
43-
# - Installs NodeJS 14.
43+
# - Installs NodeJS.
4444
# - Installs NPM dependencies
4545
# - Configures caching for Composer.
46-
# - Installs Composer dependencies (if desired).
47-
# - Logs Docker debug information (about both the Docker installation within the runner).
46+
# - Installs Composer dependencies.
47+
# - Logs Docker debug information (about the Docker installation within the runner).
4848
# - Starts the WordPress Docker container.
49-
# - Starts the memcached server after the Docker network has been created (if desired).
50-
# - Logs WordPress Docker container debug information.
51-
# - Logs debug general information.
49+
# - Starts the Memcached server after the Docker network has been created (if desired).
50+
# - Logs general debug information about the runner.
5251
# - Logs the running Docker containers.
52+
# - Logs debug information from inside the WordPress Docker container.
5353
# - Logs debug information about what's installed within the WordPress Docker containers.
5454
# - Install WordPress within the Docker container.
5555
# - Run the PHPUnit tests.
@@ -110,10 +110,10 @@ jobs:
110110
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
111111
112112
- name: Checkout repository
113-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
113+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
114114

115115
- name: Install NodeJS
116-
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
116+
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
117117
with:
118118
node-version-file: '.nvmrc'
119119
cache: npm
@@ -132,7 +132,7 @@ jobs:
132132
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
133133

134134
- name: Cache Composer dependencies
135-
uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1
135+
uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
136136
env:
137137
cache-name: cache-composer-dependencies
138138
with:
@@ -231,7 +231,7 @@ jobs:
231231

232232
- name: Checkout the WordPress Test Reporter
233233
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }}
234-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
234+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
235235
with:
236236
repository: 'WordPress/phpunit-test-runner'
237237
path: 'test-runner'

0 commit comments

Comments
 (0)