CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Sat, 11 Oct 2025 13:32:35 GMT
content-type: text/html;charset=utf-8
vary: Accept-Encoding
etag: W/"anonymous/Tue, 21 Jan 2025 15:40:51 GMT/276b51bbadf6efadb3f72b2d175bdc99"
cache-control: must-revalidate
alt-svc: h3=":443"; ma=86400
x-nc: MISS
content-encoding: gzip
Changeset 59673 – WordPress Trac
Changeset 59673
- Timestamp:
- 01/21/2025 03:40:51 PM (9 months ago)
- Author:
- johnbillion
- Message:
-
Build/Test Tools: Switch to using local references for reusable workflows.
The benefit of this is that when PRs are made to make changes to a reusable workflow, the references doesn't need to be updated to point to the fork in order for the changed workflow to run.
A
npm run grunt replace:workflow-references-local-to-remote
command has also been introduced in order to convert these local references back to remote ones. This command can be used to switch release branches over to using remote workflows, as they are currently, so they continue to benefit from workflow changes in trunk without the need for continual backporting to all the branches.
Props desrosj, johnbillion
Fixes #62416
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/coding-standards.yml
r59252 r59673 50 50 phpcs: 51 51 name: PHP coding standards 52 uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-php.yml@trunk52 uses: ./.github/workflows/reusable-coding-standards-php.yml 53 53 permissions: 54 54 contents: read … … 58 58 jshint: 59 59 name: JavaScript coding standards 60 uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-javascript.yml@trunk60 uses: ./.github/workflows/reusable-coding-standards-javascript.yml 61 61 permissions: 62 62 contents: read … … 65 65 slack-notifications: 66 66 name: Slack Notifications 67 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk67 uses: ./.github/workflows/slack-notifications.yml 68 68 permissions: 69 69 actions: read -
trunk/.github/workflows/end-to-end-tests.yml
r58165 r59673 39 39 e2e-tests: 40 40 name: Test with SCRIPT_DEBUG ${{ matrix.LOCAL_SCRIPT_DEBUG && 'enabled' || 'disabled' }} 41 uses: WordPress/wordpress-develop/.github/workflows/reusable-end-to-end-tests.yml@trunk41 uses: ./.github/workflows/reusable-end-to-end-tests.yml 42 42 permissions: 43 43 contents: read … … 52 52 slack-notifications: 53 53 name: Slack Notifications 54 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk54 uses: ./.github/workflows/slack-notifications.yml 55 55 permissions: 56 56 actions: read -
trunk/.github/workflows/install-testing.yml
r59585 r59673 44 44 build-test-matrix: 45 45 name: Build Test Matrix 46 uses: WordPress/wordpress-develop/.github/workflows/reusable-support-json-reader-v1.yml@trunk46 uses: ./.github/workflows/reusable-support-json-reader-v1.yml 47 47 permissions: 48 48 contents: read … … 133 133 slack-notifications: 134 134 name: Slack Notifications 135 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk135 uses: ./.github/workflows/slack-notifications.yml 136 136 permissions: 137 137 actions: read -
trunk/.github/workflows/javascript-tests.yml
r59252 r59673 48 48 test-js: 49 49 name: QUnit Tests 50 uses: WordPress/wordpress-develop/.github/workflows/reusable-javascript-tests.yml@trunk50 uses: ./.github/workflows/reusable-javascript-tests.yml 51 51 permissions: 52 52 contents: read … … 55 55 slack-notifications: 56 56 name: Slack Notifications 57 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk57 uses: ./.github/workflows/slack-notifications.yml 58 58 permissions: 59 59 actions: read -
trunk/.github/workflows/local-docker-environment.yml
r59585 r59673 64 64 build-test-matrix: 65 65 name: Build Test Matrix 66 uses: WordPress/wordpress-develop/.github/workflows/reusable-support-json-reader-v1.yml@trunk66 uses: ./.github/workflows/reusable-support-json-reader-v1.yml 67 67 permissions: 68 68 contents: read … … 75 75 environment-tests-mysql: 76 76 name: PHP ${{ matrix.php }} 77 uses: WordPress/wordpress-develop/.github/workflows/reusable-test-local-docker-environment-v1.yml@trunk77 uses: ./.github/workflows/reusable-test-local-docker-environment-v1.yml 78 78 permissions: 79 79 contents: read … … 109 109 slack-notifications: 110 110 name: Slack Notifications 111 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk111 uses: ./.github/workflows/slack-notifications.yml 112 112 permissions: 113 113 actions: read -
trunk/.github/workflows/performance.yml
r59577 r59673 34 34 performance: 35 35 name: ${{ matrix.multisite && 'Multisite' || 'Single site' }} 36 uses: WordPress/wordpress-develop/.github/workflows/reusable-performance.yml@trunk36 uses: ./.github/workflows/reusable-performance.yml 37 37 permissions: 38 38 contents: read … … 51 51 slack-notifications: 52 52 name: Slack Notifications 53 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk53 uses: ./.github/workflows/slack-notifications.yml 54 54 permissions: 55 55 actions: read -
trunk/.github/workflows/php-compatibility.yml
r59252 r59673 45 45 php-compatibility: 46 46 name: Check PHP compatibility 47 uses: WordPress/wordpress-develop/.github/workflows/reusable-php-compatibility.yml@trunk47 uses: ./.github/workflows/reusable-php-compatibility.yml 48 48 permissions: 49 49 contents: read … … 52 52 slack-notifications: 53 53 name: Slack Notifications 54 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk54 uses: ./.github/workflows/slack-notifications.yml 55 55 permissions: 56 56 actions: read -
trunk/.github/workflows/phpunit-tests.yml
r59587 r59673 37 37 test-with-mysql: 38 38 name: PHP ${{ matrix.php }} 39 uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests-v3.yml@trunk39 uses: ./.github/workflows/reusable-phpunit-tests-v3.yml 40 40 permissions: 41 41 contents: read … … 108 108 test-with-mariadb: 109 109 name: PHP ${{ matrix.php }} 110 uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests-v3.yml@trunk110 uses: ./.github/workflows/reusable-phpunit-tests-v3.yml 111 111 permissions: 112 112 contents: read … … 158 158 test-innovation-releases: 159 159 name: PHP ${{ matrix.php }} 160 uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests-v3.yml@trunk160 uses: ./.github/workflows/reusable-phpunit-tests-v3.yml 161 161 permissions: 162 162 contents: read … … 201 201 specific-test-groups: 202 202 name: ${{ matrix.phpunit-test-groups }} 203 uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests-v3.yml@trunk203 uses: ./.github/workflows/reusable-phpunit-tests-v3.yml 204 204 permissions: 205 205 contents: read … … 221 221 slack-notifications: 222 222 name: Slack Notifications 223 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk223 uses: ./.github/workflows/slack-notifications.yml 224 224 permissions: 225 225 actions: read -
trunk/.github/workflows/test-and-zip-default-themes.yml
r59354 r59673 199 199 slack-notifications: 200 200 name: Slack Notifications 201 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk201 uses: ./.github/workflows/slack-notifications.yml 202 202 permissions: 203 203 actions: read -
trunk/.github/workflows/test-build-processes.yml
r58345 r59673 32 32 test-core-build-process: 33 33 name: Core running from ${{ matrix.directory }} 34 uses: WordPress/wordpress-develop/.github/workflows/reusable-test-core-build-process.yml@trunk34 uses: ./.github/workflows/reusable-test-core-build-process.yml 35 35 permissions: 36 36 contents: read … … 64 64 test-core-build-process-macos: 65 65 name: Core running from ${{ matrix.directory }} 66 uses: WordPress/wordpress-develop/.github/workflows/reusable-test-core-build-process.yml@trunk66 uses: ./.github/workflows/reusable-test-core-build-process.yml 67 67 permissions: 68 68 contents: read … … 80 80 test-gutenberg-build-process: 81 81 name: Gutenberg running from ${{ matrix.directory }} 82 uses: WordPress/wordpress-develop/.github/workflows/reusable-test-gutenberg-build-process.yml@trunk82 uses: ./.github/workflows/reusable-test-gutenberg-build-process.yml 83 83 permissions: 84 84 contents: read … … 103 103 test-gutenberg-build-process-macos: 104 104 name: Gutenberg running from ${{ matrix.directory }} 105 uses: WordPress/wordpress-develop/.github/workflows/reusable-test-gutenberg-build-process.yml@trunk105 uses: ./.github/workflows/reusable-test-gutenberg-build-process.yml 106 106 permissions: 107 107 contents: read … … 118 118 slack-notifications: 119 119 name: Slack Notifications 120 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk120 uses: ./.github/workflows/slack-notifications.yml 121 121 permissions: 122 122 actions: read -
trunk/.github/workflows/test-coverage.yml
r59355 r59673 50 50 test-coverage-report: 51 51 name: ${{ matrix.multisite && 'Multisite' || 'Single site' }} report 52 uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests-v3.yml@trunk52 uses: ./.github/workflows/reusable-phpunit-tests-v3.yml 53 53 permissions: 54 54 contents: read … … 68 68 slack-notifications: 69 69 name: Slack Notifications 70 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk70 uses: ./.github/workflows/slack-notifications.yml 71 71 permissions: 72 72 actions: read -
trunk/.github/workflows/test-old-branches.yml
r59529 r59673 133 133 slack-notifications: 134 134 name: Slack Notifications 135 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk135 uses: ./.github/workflows/slack-notifications.yml 136 136 permissions: 137 137 actions: read -
trunk/.github/workflows/upgrade-testing.yml
r59531 r59673 58 58 upgrade-tests-last-two-releases: 59 59 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 60 uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk60 uses: ./.github/workflows/reusable-upgrade-testing.yml 61 61 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 62 62 permissions: … … 95 95 upgrade-tests-wp-6x-mysql: 96 96 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 97 uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk97 uses: ./.github/workflows/reusable-upgrade-testing.yml 98 98 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 99 99 permissions: … … 127 127 upgrade-tests-wp-5x-php-7x-mysql: 128 128 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 129 uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk129 uses: ./.github/workflows/reusable-upgrade-testing.yml 130 130 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 131 131 strategy: … … 161 161 upgrade-tests-wp-5x-php-8x-mysql: 162 162 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 163 uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk163 uses: ./.github/workflows/reusable-upgrade-testing.yml 164 164 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 165 165 strategy: … … 186 186 upgrade-tests-wp-4x-php-7x-mysql: 187 187 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 188 uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk188 uses: ./.github/workflows/reusable-upgrade-testing.yml 189 189 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 190 190 strategy: … … 222 222 upgrade-tests-wp-4x-php-8x-mysql: 223 223 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 224 uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk224 uses: ./.github/workflows/reusable-upgrade-testing.yml 225 225 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 226 226 strategy: … … 246 246 upgrade-tests-oldest-wp-mysql: 247 247 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 248 uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk248 uses: ./.github/workflows/reusable-upgrade-testing.yml 249 249 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 250 250 strategy: … … 280 280 slack-notifications: 281 281 name: Slack Notifications 282 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk282 uses: ./.github/workflows/slack-notifications.yml 283 283 permissions: 284 284 actions: read -
trunk/Gruntfile.js
r59443 r59673 457 457 } 458 458 } 459 }, 460 'workflow-references-local-to-remote': { 461 options: { 462 processContent: function( src ) { 463 return src.replace( /uses: \.\/\.github\/workflows\/([^\.]+)\.yml/g, function( match, $1 ) { 464 return 'uses: WordPress/wordpress-develop/.github/workflows/' + $1 + '.yml@trunk'; 465 } ); 466 } 467 }, 468 src: '.github/workflows/*.yml', 469 dest: './' 470 }, 471 'workflow-references-remote-to-local': { 472 options: { 473 processContent: function( src ) { 474 return src.replace( /uses: WordPress\/wordpress-develop\/\.github\/workflows\/([^\.]+)\.yml@trunk/g, function( match, $1 ) { 475 return 'uses: ./.github/workflows/' + $1 + '.yml'; 476 } ); 477 } 478 }, 479 src: '.github/workflows/*.yml', 480 dest: './' 459 481 } 460 482 }, … … 1514 1536 ] ); 1515 1537 1538 grunt.registerTask( 'replace:workflow-references-local-to-remote', [ 1539 'copy:workflow-references-local-to-remote', 1540 ]); 1541 1542 grunt.registerTask( 'replace:workflow-references-remote-to-local', [ 1543 'copy:workflow-references-remote-to-local', 1544 ]); 1545 1516 1546 /** 1517 1547 * Build verification tasks.
Note: See TracChangeset
for help on using the changeset viewer.