Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: update npm packages in trunk for 6.7.1. #1

Open
wants to merge 71 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
f9418c7
Editor: update npm packages in trunk for 6.7.1.
desrosj Nov 20, 2024
4a03ebe
Build/Test Tools: Correctly check for Dependabot.
desrosj Nov 20, 2024
b2c8d8d
Editor: Avoid unnecessary array_merge in WP_Style_Engine::parse_block…
joemcgill Nov 20, 2024
99dd184
Build/Test Tools: Improve the error message shown when fetching Twemo…
johnbillion Nov 21, 2024
71a52ce
HTML API: Add method to create fragment at node.
ockham Nov 21, 2024
8cd0ec0
Bundled Theme: Pin a `theme.json` schema version to Twenty Twenty-Five.
desrosj Nov 21, 2024
849db39
Editor: Warn about empty templates on the frontend for logged in users.
mikachan Nov 22, 2024
1563d86
HTML API: Prevent fragment creation on close tag.
cbravobernal Nov 22, 2024
5728ebb
Bundled Theme: Pin schema version to rest of Twenty Twenty-Five.
desrosj Nov 22, 2024
bdeb21b
Build/Test Tools: Create reusable workflow for parsing `.version-supp…
desrosj Nov 22, 2024
af1682d
Coding Standards: Explicitly return `null` instead of coercing `void`.
SergeyBiryukov Nov 22, 2024
aa2b4fd
Editor: Fix selecting/deselecting multiple unwanted categories when c…
azaozz Nov 22, 2024
2d9937a
Coding Standards: Replace usage of deprecated `wp_get_duotone_filter_…
SergeyBiryukov Nov 23, 2024
e80aa00
Coding Standards: Remove extra `unset()` in `rest_handle_options_requ…
SergeyBiryukov Nov 24, 2024
27c566f
REST API: Remove trailing slashes when preloading requests and there …
swissspidy Nov 25, 2024
1aa41de
REST API: Terms: Respect taxonomy's default query args.
ockham Nov 25, 2024
75c587f
Coding Standards: Cast `$expired` to an integer in `wp_validate_auth_…
SergeyBiryukov Nov 25, 2024
bd21a8a
I18N: Switch locale to admin locale when sending auto update emails.
swissspidy Nov 26, 2024
c344148
I18N: Load translations just-in-time for custom themes and plugins.
swissspidy Nov 26, 2024
520e61d
Coding Standards: Cast `wp_count_terms()` result to `int` before usin…
SergeyBiryukov Nov 26, 2024
6ed2409
HTML API: Remove unused processor state context_node property
gziolo Nov 27, 2024
9840f03
HTML API: Recognize all uppercase tag names in tag processor.
cbravobernal Nov 27, 2024
b72334e
Coding Standards: Cast `gmdate( 'Z' )` to an integer before addition.
SergeyBiryukov Nov 27, 2024
e904637
I18N: Do not reuse `$theme` variable name after loading a theme's `fu…
swissspidy Nov 27, 2024
4b34369
HTML API: Allow more contexts in `create_fragment`.
ockham Nov 27, 2024
e99d839
HTML API: Make non-body fragment creation methods private.
ockham Nov 28, 2024
8834f57
Twenty-Twenty: Fixes space between post content on front.
karmatosed Nov 28, 2024
ce4627f
Coding Standards: Cast `gmdate( 'w' )` to `int` before using as integer.
SergeyBiryukov Nov 28, 2024
dfcdeaf
Editor: Add description for Banners block pattern category.
SergeyBiryukov Nov 29, 2024
0671dfd
Media: improve filter to enable setting output quality by image size.
adamsilverstein Nov 29, 2024
ad9505b
Docs: Correct DocBlock formatting for `WP_Theme_JSON::FONT_FAMILY_SCH…
SergeyBiryukov Nov 30, 2024
cc5c5b8
Date/Time: Add `d.m.Y` to date format presets on General Settings scr…
SergeyBiryukov Dec 1, 2024
c5a5d9b
Twenty Thirteen & Twenty Sixteen: Correct the border of the latest co…
carolinan Dec 2, 2024
e89e279
Interactivity API: Support length property on strings and arrays on t…
gziolo Dec 2, 2024
6383964
I18N: Load admin translations for auto update emails.
swissspidy Dec 2, 2024
daad863
Plugins: Make more plugin-related functions available early on.
swissspidy Dec 2, 2024
d93b275
Customize: Begin HTML markup before Customizer script hooks.
SergeyBiryukov Dec 2, 2024
8eb8d63
External Libraries: Upgrade PHPMailer to version 6.9.3.
SergeyBiryukov Dec 3, 2024
1d49212
Block Hooks: Fix context in `update_ignored_hooked_blocks_postmeta`.
ockham Dec 4, 2024
d576e24
Build/Test Tools: Add `repository` input to support JSON reading work…
desrosj Dec 4, 2024
ea80ac8
Build/Test Tools: Support older MariaDB versions in local Docker envi…
desrosj Dec 4, 2024
9558c1f
Build/Test Tools: Run install tests when JSON reading workflow is cha…
desrosj Dec 4, 2024
7d3ce7a
Docs: Remove blank line at the end of `wp_prepare_attachment_for_js()…
SergeyBiryukov Dec 4, 2024
b67c76e
Plugins: Load `wp-admin/includes/plugin.php` earlier.
swissspidy Dec 5, 2024
e585c95
Build/Test Tools: Properly escape `$` characters in Docker compose file.
desrosj Dec 5, 2024
5adbb3e
Build/Test Tools: Use newer versions for `include` jobs.
desrosj Dec 5, 2024
2d8d21f
Build/Test Tools: Support `trunk` as a version.
desrosj Dec 5, 2024
29ec312
Build/Test Tools: Introduce workflow for testing the local Docker env…
desrosj Dec 5, 2024
9c7d008
Embeds: ensure correct thumbnail height.
swissspidy Dec 5, 2024
59a6b5e
I18N: Add new `WP_Locale::get_month_genitive()` method.
swissspidy Dec 5, 2024
d45a119
Docs: Add missing `@var` tag for `WP_Query::$query_vars_changed`.
SergeyBiryukov Dec 5, 2024
1b1e35d
Coding Standards: Use correct escaping function for `wp_http_referer`.
SergeyBiryukov Dec 6, 2024
750f743
Coding Standards: Use strict comparison in `media_upload_form_handler…
SergeyBiryukov Dec 7, 2024
faff3a2
Coding Standards: Use strict comparison in `wp-includes/comment-templ…
SergeyBiryukov Dec 8, 2024
a1079b6
Editor: Update docblocks for `wp_get_global_stylesheet` and `WP_Theme…
tellthemachines Dec 9, 2024
0d42819
HTML API: Step past closing HTML, BODY tags
gziolo Dec 9, 2024
6106332
REST API: Correct description for the `humanized_updated` block direc…
SergeyBiryukov Dec 9, 2024
1467750
HTML API: Prevent bookmarks from being set on virtual tokens
gziolo Dec 10, 2024
2b49715
HTML API: Remove nullable from get_breadcrumbs return type
gziolo Dec 10, 2024
32880ec
Twenty Twenty-Two: Fix PHPCS issues in `functions.php`.
SergeyBiryukov Dec 10, 2024
9104190
Docs: Correct formatting for script module data filter documentation …
SergeyBiryukov Dec 11, 2024
e2b0bfd
Filesystem API: Check `PHP_OS_FAMILY` instead of `php_uname()` in Pcl…
SergeyBiryukov Dec 12, 2024
b4969d4
Build/Test Tools: Remove repository specific logic from callable work…
desrosj Dec 13, 2024
ff5850e
Build/Test Tools: Trim down the upgrade testing matrix.
desrosj Dec 13, 2024
28f4e37
Build/Test Tools: Update `devDependencies`.
desrosj Dec 13, 2024
20982b7
Customize: Remove unnecessary `height: 100%` on accordion button.
joedolson Dec 13, 2024
ab51fc3
Editor: Hide 'Skip to Editor' if editor not supported.
joedolson Dec 13, 2024
85937e7
Coding Standards: Use strict comparison in `get_blog_id_from_url()`.
SergeyBiryukov Dec 13, 2024
1cc1af2
Themes: Replace "Active" wording with "Installed" in the theme instal…
audrasjb Dec 13, 2024
b03c9f5
Comments: Avoid reverting comment reply when context menu is open.
joedolson Dec 14, 2024
c3c319e
Formatting: Check the result of `preg_split()` in `convert_smilies()`.
SergeyBiryukov Dec 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 16 additions & 57 deletions .github/workflows/install-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ on:
paths:
- '.github/workflows/install-testing.yml'
- '.version-support-*.json'
- '.github/workflows/reusable-support-json-reader-v1.yml'
pull_request:
# Always test the workflow when changes are suggested.
paths:
- '.github/workflows/install-testing.yml'
- '.version-support-*.json'
- '.github/workflows/install-testing.yml'
- '.github/workflows/reusable-support-json-reader-v1.yml'

schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
Expand All @@ -37,60 +40,16 @@ concurrency:
permissions: {}

jobs:
# Determines the appropriate values for PHP and database versions based on the WordPress version being tested.
#
# Performs the following steps:
# - Checks out the repository.
# - Fetches the versions of PHP to test.
# - Fetches the versions of MySQL to test.
build-matrix:
name: Determine PHP Versions to test
runs-on: ubuntu-latest
# 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
permissions:
contents: read
secrets: inherit
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
timeout-minutes: 5
outputs:
major-wp-version: ${{ steps.major-wp-version.outputs.version }}
php-versions: ${{ steps.php-versions.outputs.versions }}
mysql-versions: ${{ steps.mysql-versions.outputs.versions }}

steps:
- name: Checkout repository
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Determine the major WordPress version
id: major-wp-version
run: |
if [ "${{ inputs.wp-version }}" ] && [ "${{ inputs.wp-version }}" != "nightly" ] && [ "${{ inputs.wp-version }}" != "latest" ]; then
echo "version=$(echo "${{ inputs.wp-version }}" | tr '.' '-' | cut -d '-' -f1-2)" >> $GITHUB_OUTPUT
elif [ "${{ inputs.wp-version }}" ]; then
echo "version=$(echo "${{ inputs.wp-version }}")" >> $GITHUB_OUTPUT
else
echo "version=nightly" >> $GITHUB_OUTPUT
fi

# Look up the major version's specific PHP support policy when a version is provided.
# Otherwise, use the current PHP support policy.
- name: Get supported PHP versions
id: php-versions
run: |
if [ "${{ steps.major-wp-version.outputs.version }}" != "latest" ] && [ "${{ steps.major-wp-version.outputs.version }}" != "nightly" ]; then
echo "versions=$(jq -r '.["${{ steps.major-wp-version.outputs.version }}"] | @json' .version-support-php.json)" >> $GITHUB_OUTPUT
else
echo "versions=$(jq -r '.[ (keys[-1]) ] | @json' .version-support-php.json)" >> $GITHUB_OUTPUT
fi

# Look up the major version's specific MySQL support policy when a version is provided.
# Otherwise, use the current MySQL support policy.
- name: Get supported MySQL versions
id: mysql-versions
run: |
if [ "${{ steps.major-wp-version.outputs.version }}" != "latest" ] && [ "${{ steps.major-wp-version.outputs.version }}" != "nightly" ]; then
echo "versions=$(jq -r '.["${{ steps.major-wp-version.outputs.version }}"] | @json' .version-support-mysql.json)" >> $GITHUB_OUTPUT
else
echo "versions=$(jq -r '.[ (keys[-1]) ] | @json' .version-support-mysql.json)" >> $GITHUB_OUTPUT
fi
with:
wp-version: ${{ inputs.wp-version }}

# Test the WordPress installation process through WP-CLI.
#
Expand All @@ -106,14 +65,14 @@ jobs:
runs-on: ${{ matrix.os }}
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
timeout-minutes: 10
needs: [ build-matrix ]
needs: [ build-test-matrix ]
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: ${{ fromJSON( needs.build-matrix.outputs.php-versions ) }}
php: ${{ fromJSON( needs.build-test-matrix.outputs.php-versions ) }}
db-type: [ 'mysql' ]
db-version: ${{ fromJSON( needs.build-matrix.outputs.mysql-versions ) }}
db-version: ${{ fromJSON( needs.build-test-matrix.outputs.mysql-versions ) }}
multisite: [ false, true ]
memcached: [ false ]

Expand Down
154 changes: 154 additions & 0 deletions .github/workflows/local-docker-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
name: Local Docker Environment

on:
push:
branches:
- trunk
- '6.[8-9]'
- '[7-9].[0-9]'
paths:
# Any changes to Docker related files.
- '.env.example'
- 'docker-compose.yml'
# Any changes to local environment related files
- 'tools/local-env/**'
# These files manage packages used by the local environment.
- 'package*.json'
# These files configure Composer. Changes could affect the local environment.
- 'composer.*'
# These files define the versions to test.
- '.version-support-*.json'
# Changes to this and related workflow files should always be verified.
- '.github/workflows/local-docker-environment.yml'
- '.github/workflows/reusable-support-json-reader-v1.yml'
- '.github/workflows/reusable-test-docker-environment-v1.yml'
pull_request:
branches:
- trunk
- '6.[8-9]'
- '[7-9].[0-9]'
paths:
# Any changes to Docker related files.
- '.env.example'
- 'docker-compose.yml'
# Any changes to local environment related files
- 'tools/local-env/**'
# These files manage packages used by the local environment.
- 'package*.json'
# These files configure Composer. Changes could affect the local environment.
- 'composer.*'
# These files define the versions to test.
- '.version-support-*.json'
# Changes to this and related workflow files should always be verified.
- '.github/workflows/local-docker-environment.yml'
- '.github/workflows/reusable-support-json-reader-v1.yml'
- '.github/workflows/reusable-test-docker-environment-v1.yml'
workflow_dispatch:

# 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.event_name == 'pull_request' && github.head_ref || 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:
#
# Determines the appropriate 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
permissions:
contents: read
secrets: inherit
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
with:
wp-version: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}

# Tests the local Docker environment.
environment-tests-mysql:
name: PHP ${{ matrix.php }}
uses: WordPress/wordpress-develop/.github/workflows/reusable-test-local-docker-environment-v1.yml@trunk
permissions:
contents: read
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
needs: [ build-test-matrix ]
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
memcached: [ false, true ]
php: ${{ fromJSON( needs.build-test-matrix.outputs.php-versions ) }}
db-version: ${{ fromJSON( needs.build-test-matrix.outputs.mysql-versions ) }}

exclude:
# The MySQL 5.5 containers will not start.
- db-version: '5.5'
# MySQL 9.0+ will not work on PHP 7.2 & 7.3
- php: '7.2'
db-version: '9.0'
- php: '7.3'
db-version: '9.0'

with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
db-type: 'mysql'
db-version: ${{ matrix.db-version }}
memcached: ${{ matrix.memcached }}
tests-domain: ${{ matrix.tests-domain }}

slack-notifications:
name: Slack Notifications
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
permissions:
actions: read
contents: read
needs: [ build-test-matrix, environment-tests-mysql ]
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
with:
calling_status: ${{ contains( needs.*.result, 'cancelled' ) && 'cancelled' || contains( needs.*.result, 'failure' ) && 'failure' || 'success' }}
secrets:
SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}

failed-workflow:
name: Failed workflow tasks
runs-on: ubuntu-latest
permissions:
actions: write
needs: [ build-test-matrix, environment-tests-mysql, slack-notifications ]
if: |
always() &&
github.repository == 'WordPress/wordpress-develop' &&
github.event_name != 'pull_request' &&
github.run_attempt < 2 &&
(
contains( needs.*.result, 'cancelled' ) ||
contains( needs.*.result, 'failure' )
)

steps:
- name: Dispatch workflow run
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
retries: 2
retry-exempt-status-codes: 418
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'failed-workflow.yml',
ref: 'trunk',
inputs: {
run_id: '${{ github.run_id }}'
}
});
2 changes: 1 addition & 1 deletion .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: WordPress/wordpress-develop/.github/workflows/reusable-performance.yml@trunk
permissions:
contents: read
if: ${{ ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) && ! contains( github.event.before, '00000000' ) }}
if: ${{ ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }}
strategy:
fail-fast: false
matrix:
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,40 +53,40 @@ jobs:
memcached: [ false ]

include:
# Include jobs for PHP 7.4 with memcached.
# Include jobs that test with memcached.
- os: ubuntu-latest
php: '7.4'
php: '8.3'
db-type: 'mysql'
db-version: '5.7'
db-version: '8.4'
tests-domain: 'example.org'
multisite: false
memcached: true
- os: ubuntu-latest
php: '7.4'
php: '8.3'
db-type: 'mysql'
db-version: '5.7'
db-version: '8.4'
tests-domain: 'example.org'
multisite: true
memcached: true
# Include jobs with a port on the test domain for both single and multisite.
- os: ubuntu-latest
php: '7.4'
php: '8.4'
db-type: 'mysql'
db-version: '5.7'
db-version: '8.4'
tests-domain: 'example.org:8889'
multisite: false
memcached: false
- os: ubuntu-latest
php: '7.4'
php: '8.4'
db-type: 'mysql'
db-version: '5.7'
db-version: '8.4'
tests-domain: 'example.org:8889'
multisite: true
memcached: false
# Report test results to the Host Test Results.
- os: ubuntu-latest
db-type: 'mysql'
db-version: '8.0'
db-version: '8.4'
tests-domain: 'example.org'
multisite: false
memcached: false
Expand Down Expand Up @@ -131,15 +131,15 @@ jobs:
memcached: [ false ]

include:
# Include jobs for PHP 7.4 with memcached.
# Include jobs that test with memcached.
- os: ubuntu-latest
php: '7.4'
php: '8.3'
db-type: 'mariadb'
db-version: '11.2'
multisite: false
memcached: true
- os: ubuntu-latest
php: '7.4'
php: '8.3'
db-type: 'mariadb'
db-version: '11.2'
multisite: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:

- name: Leave a comment about testing with Playground
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
if: ${{ github.actor != 'dependabot' }}
if: ${{ github.actor != 'dependabot[bot]' }}
with:
script: |
const fs = require( 'fs' );
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
permissions:
issues: write
pull-requests: write
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' && ! github.event.pull_request.draft && github.event.pull_request.state == 'open' && github.actor != 'dependabot' }}
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' && ! github.event.pull_request.draft && github.event.pull_request.state == 'open' && github.actor != 'dependabot[bot]' }}
steps:
- name: Check for Trac ticket and manage comment
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
if: ${{ ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) && ! contains( github.event.before, '00000000' ) }}
if: ${{ ! contains( github.event.before, '00000000' ) }}

steps:
- name: Configure environment variables
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reusable-phpunit-tests-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jobs:

- name: WordPress Docker container debug information
run: |
docker compose run --rm mysql ${{ env.LOCAL_DB_TYPE }} --version
docker compose run --rm mysql ${{ env.LOCAL_DB_TYPE == 'mariadb' && contains( fromJSON('["5.5", "10.0", "10.1", "10.2", "10.3"]'), env.LOCAL_DB_VERSION ) && 'mysql' || env.LOCAL_DB_TYPE }} --version
docker compose run --rm php php --version
docker compose run --rm php php -m
docker compose run --rm php php -i
Expand Down Expand Up @@ -226,15 +226,15 @@ jobs:
run: git diff --exit-code

- name: Checkout the WordPress Test Reporter
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report }}
if: ${{ github.ref == 'refs/heads/trunk' && inputs.report }}
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: 'WordPress/phpunit-test-runner'
path: 'test-runner'
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Submit test results to the WordPress.org host test results
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report }}
if: ${{ github.ref == 'refs/heads/trunk' && inputs.report }}
env:
WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}"
run: docker compose run --rm -e WPT_REPORT_API_KEY -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php
Loading