Skip to content

Commit 795fdb7

Browse files
authored
Merge branch 'trunk' into 2014-legacy-ie
2 parents e6b0fc4 + d42962b commit 795fdb7

File tree

1,030 files changed

+72417
-61606
lines changed

Some content is hidden

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

1,030 files changed

+72417
-61606
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ LOCAL_DB_TYPE=mysql
5151
# When using `mysql`, see https://hub.docker.com/_/mysql for valid versions.
5252
# When using `mariadb`, see https://hub.docker.com/_/mariadb for valid versions.
5353
##
54-
LOCAL_DB_VERSION=8.0
54+
LOCAL_DB_VERSION=8.4
5555

5656
# Whether or not to enable multisite.
5757
LOCAL_MULTISITE=false

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,20 @@ updates:
1212
github-actions:
1313
patterns:
1414
- "*"
15+
16+
# Check for updates to Composer packages.
17+
- package-ecosystem: "composer"
18+
directory: "/"
19+
schedule:
20+
interval: "daily"
21+
open-pull-requests-limit: 10
22+
ignore:
23+
# These dependencies do not currently need to be managed with Dependabot.
24+
- dependency-name: "squizlabs/php_codesniffer"
25+
- dependency-name: "wp-coding-standards/wpcs"
26+
- dependency-name: "phpcompatibility/php-compatibility"
27+
- dependency-name: "yoast/phpunit-polyfills"
28+
groups:
29+
composer-packages:
30+
patterns:
31+
- "composer/ca-bundle"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Cleanup Pull Requests
2+
3+
on:
4+
push:
5+
branches:
6+
- trunk
7+
- '4.[1-9]'
8+
- '[5-9].[0-9]'
9+
10+
# Cancels all previous workflow runs for pull requests that have not completed.
11+
concurrency:
12+
# The concurrency group contains the workflow name and the branch name for pull requests
13+
# or the commit hash for any other events.
14+
group: ${{ github.workflow }}-${{ github.sha }}
15+
cancel-in-progress: true
16+
17+
# Disable permissions for all available scopes by default.
18+
# Any needed permissions should be configured at the job level.
19+
permissions: {}
20+
21+
jobs:
22+
# Runs pull request cleanup.
23+
close-prs:
24+
name: Clean up pull requests
25+
permissions:
26+
pull-requests: write
27+
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
28+
uses: ./.github/workflows/reusable-cleanup-pull-requests.yml

.github/workflows/coding-standards.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ on:
2929
- '.jshintrc'
3030
# This file configures PHPCS. Changes could affect the outcome.
3131
- 'phpcs.xml.dist'
32-
# Changes to workflow files should always verify all workflows are successful.
33-
- '.github/workflows/*.yml'
32+
# Confirm any changes to relevant workflow files.
33+
- '.github/workflows/coding-standards.yml'
34+
- '.github/workflows/reusable-coding-standards-*.yml'
3435
workflow_dispatch:
3536

3637
# Cancels all previous workflow runs for pull requests that have not completed.
@@ -48,22 +49,22 @@ jobs:
4849
# Runs the PHP coding standards checks.
4950
phpcs:
5051
name: PHP coding standards
51-
uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-php.yml@trunk
52+
uses: ./.github/workflows/reusable-coding-standards-php.yml
5253
permissions:
5354
contents: read
5455
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
5556

5657
# Runs the JavaScript coding standards checks.
5758
jshint:
5859
name: JavaScript coding standards
59-
uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-javascript.yml@trunk
60+
uses: ./.github/workflows/reusable-coding-standards-javascript.yml
6061
permissions:
6162
contents: read
6263
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
6364

6465
slack-notifications:
6566
name: Slack Notifications
66-
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
67+
uses: ./.github/workflows/slack-notifications.yml
6768
permissions:
6869
actions: read
6970
contents: read
@@ -79,7 +80,7 @@ jobs:
7980

8081
failed-workflow:
8182
name: Failed workflow tasks
82-
runs-on: ubuntu-latest
83+
runs-on: ubuntu-24.04
8384
permissions:
8485
actions: write
8586
needs: [ phpcs, jshint, slack-notifications ]
@@ -106,6 +107,6 @@ jobs:
106107
workflow_id: 'failed-workflow.yml',
107108
ref: 'trunk',
108109
inputs: {
109-
run_id: '${{ github.run_id }}'
110+
run_id: `${context.runId}`,
110111
}
111112
});

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

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@ on:
1717
- trunk
1818
- '5.[3-9]'
1919
- '[6-9].[0-9]'
20+
paths:
21+
# Any change to a PHP, CSS, or JavaScript file should run checks.
22+
- '**.css'
23+
- '**.js'
24+
- '**.php'
25+
# These files configure npm and the task runner. Changes could affect the outcome.
26+
- 'package*.json'
27+
- 'Gruntfile.js'
28+
- 'webpack.config.js'
29+
- 'tools/webpack/**'
30+
# These files configure Composer. Changes could affect the outcome.
31+
- 'composer.*'
32+
# This files affect the e2e tests. Changes could affect the outcome.
33+
- 'tests/e2e/**'
34+
# Confirm any changes to relevant workflow files.
35+
- '.github/workflows/end-to-end-tests.yml'
36+
- '.github/workflows/reusable-end-to-end-tests-*.yml'
2037
workflow_dispatch:
2138

2239
# Cancels all previous workflow runs for pull requests that have not completed.
@@ -38,7 +55,7 @@ jobs:
3855
# Runs the end-to-end test suite.
3956
e2e-tests:
4057
name: Test with SCRIPT_DEBUG ${{ matrix.LOCAL_SCRIPT_DEBUG && 'enabled' || 'disabled' }}
41-
uses: WordPress/wordpress-develop/.github/workflows/reusable-end-to-end-tests.yml@trunk
58+
uses: ./.github/workflows/reusable-end-to-end-tests.yml
4259
permissions:
4360
contents: read
4461
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
@@ -51,7 +68,7 @@ jobs:
5168

5269
slack-notifications:
5370
name: Slack Notifications
54-
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
71+
uses: ./.github/workflows/slack-notifications.yml
5572
permissions:
5673
actions: read
5774
contents: read
@@ -67,7 +84,7 @@ jobs:
6784

6885
failed-workflow:
6986
name: Failed workflow tasks
70-
runs-on: ubuntu-latest
87+
runs-on: ubuntu-24.04
7188
permissions:
7289
actions: write
7390
needs: [ e2e-tests, slack-notifications ]
@@ -93,6 +110,6 @@ jobs:
93110
workflow_id: 'failed-workflow.yml',
94111
ref: 'trunk',
95112
inputs: {
96-
run_id: '${{ github.run_id }}'
113+
run_id: `${context.runId}`,
97114
}
98115
});

.github/workflows/failed-workflow.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# - Restarts all failed jobs when the workflow fails or is cancelled for the first time.
2424
failed-workflow:
2525
name: Rerun a workflow
26-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-24.04
2727
permissions:
2828
actions: write
2929
timeout-minutes: 30
@@ -38,7 +38,7 @@ jobs:
3838
const workflow_run = await github.rest.actions.getWorkflowRun({
3939
owner: context.repo.owner,
4040
repo: context.repo.repo,
41-
run_id: ${{ inputs.run_id }},
41+
run_id: process.env.RUN_ID,
4242
});
4343
4444
// Only rerun after the first run attempt.
@@ -49,6 +49,8 @@ jobs:
4949
const rerun = await github.rest.actions.reRunWorkflowFailedJobs({
5050
owner: context.repo.owner,
5151
repo: context.repo.repo,
52-
run_id: ${{ inputs.run_id }},
52+
run_id: process.env.RUN_ID,
5353
enable_debug_logging: true
5454
});
55+
env:
56+
RUN_ID: ${{ inputs.run_id }}

0 commit comments

Comments
 (0)