mirrored from git://develop.git.wordpress.org/
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'WordPress:trunk' into trac-22225/date-i18n-day-number-o…
…rdinals
- Loading branch information
Showing
288 changed files
with
16,927 additions
and
7,080 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Cleanup Pull Requests | ||
|
||
on: | ||
push: | ||
branches: | ||
- trunk | ||
- '4.[1-9]' | ||
- '[5-9].[0-9]' | ||
|
||
# Cancels all previous workflow runs for pull requests that have not completed. | ||
concurrency: | ||
# The concurrency group contains the workflow name and the branch name for pull requests | ||
# or the commit hash for any other events. | ||
group: ${{ github.workflow }}-${{ github.sha }} | ||
cancel-in-progress: true | ||
|
||
# Disable permissions for all available scopes by default. | ||
# Any needed permissions should be configured at the job level. | ||
permissions: {} | ||
|
||
jobs: | ||
# Runs pull request cleanup. | ||
close-prs: | ||
name: Clean up pull requests | ||
permissions: | ||
pull-requests: write | ||
if: ${{ github.repository == 'WordPress/wordpress-develop' }} | ||
uses: ./.github/workflows/reusable-cleanup-pull-requests.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
# Determines the supported values for PHP and database versions based on the WordPress version being tested. | ||
build-test-matrix: | ||
name: Build Test Matrix | ||
uses: WordPress/wordpress-develop/.github/workflows/reusable-support-json-reader-v1.yml@trunk | ||
uses: ./.github/workflows/reusable-support-json-reader-v1.yml | ||
permissions: | ||
contents: read | ||
secrets: inherit | ||
|
@@ -69,7 +69,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
os: [ ubuntu-24.04 ] | ||
php: ${{ fromJSON( needs.build-test-matrix.outputs.php-versions ) }} | ||
db-type: [ 'mysql' ] | ||
db-version: ${{ fromJSON( needs.build-test-matrix.outputs.mysql-versions ) }} | ||
|
@@ -78,19 +78,25 @@ jobs: | |
|
||
# Exclude some PHP and MySQL versions that cannot currently be tested with Docker containers. | ||
exclude: | ||
# There are no local WordPress Docker environment containers for PHP <= 5.3. | ||
- php: '5.2' | ||
- php: '5.3' | ||
# MySQL containers <= 5.5 do not exist or fail to start properly. | ||
- db-version: '5.0' | ||
- db-version: '5.1' | ||
- db-version: '5.5' | ||
# The PHP <= 7.3/MySQL 8.4 jobs currently fail due to mysql_native_password being disabled by default. See https://core.trac.wordpress.org/ticket/61218. | ||
- php: '7.2' | ||
db-version: '8.4' | ||
- php: '7.3' | ||
db-version: '8.4' | ||
# Only test the latest innovation release. | ||
- db-version: '9.0' | ||
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218. | ||
- php: '7.2' | ||
db-version: '9.0' | ||
db-version: '9.1' | ||
- php: '7.3' | ||
db-version: '9.0' | ||
db-version: '9.1' | ||
|
||
services: | ||
database: | ||
|
@@ -109,24 +115,28 @@ jobs: | |
steps: | ||
- name: Set up PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 | ||
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0 | ||
with: | ||
php-version: '${{ matrix.php }}' | ||
coverage: none | ||
tools: wp-cli${{ contains( fromJSON('["5.4", "5.5"]'), matrix.php ) && ':2.4.0' || '' }} | ||
tools: ${{ contains( fromJSON('["5.4", "5.5"]'), matrix.php ) && 'wp-cli:2.4.0' || 'wp-cli' }} | ||
|
||
- name: Download WordPress | ||
run: wp core download ${{ inputs.wp-version && format( '--version={0}', inputs.wp-version ) || '--version=nightly' }} | ||
run: wp core download --version="${WP_VERSION}" | ||
env: | ||
WP_VERSION: ${{ inputs.wp-version || 'nightly' }} | ||
|
||
- name: Create wp-config.php file | ||
run: wp config create --dbname=test_db --dbuser=root --dbpass=root --dbhost=127.0.0.1:${{ job.services.database.ports['3306'] }} | ||
run: wp config create --dbname=test_db --dbuser=root --dbpass=root --dbhost="127.0.0.1:${DB_PORT}" | ||
env: | ||
DB_PORT: ${{ job.services.database.ports['3306'] }} | ||
|
||
- name: Install WordPress | ||
run: wp core ${{ matrix.multisite && 'multisite-' || '' }}install --url=http://localhost/ --title="Upgrade Test" --admin_user=admin --admin_password=password [email protected] --skip-email | ||
run: wp core ${{ matrix.multisite && 'multisite-install' || 'install' }} --url=http://localhost/ --title="Upgrade Test" --admin_user=admin --admin_password=password [email protected] --skip-email | ||
|
||
slack-notifications: | ||
name: Slack Notifications | ||
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk | ||
uses: ./.github/workflows/slack-notifications.yml | ||
permissions: | ||
actions: read | ||
contents: read | ||
|
@@ -142,7 +152,7 @@ jobs: | |
|
||
failed-workflow: | ||
name: Failed workflow tasks | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
actions: write | ||
needs: [ slack-notifications ] | ||
|
@@ -169,6 +179,6 @@ jobs: | |
workflow_id: 'failed-workflow.yml', | ||
ref: 'trunk', | ||
inputs: { | ||
run_id: '${{ github.run_id }}' | ||
run_id: `${context.runId}`, | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.