Changeset 60534
- Timestamp:
- 08/01/2025 12:42:18 PM (9 months ago)
- Location:
- trunk/.github/workflows
- Files:
-
- 7 edited
-
install-testing.yml (modified) (2 diffs)
-
local-docker-environment.yml (modified) (1 diff)
-
phpunit-tests.yml (modified) (6 diffs)
-
test-and-zip-default-themes.yml (modified) (1 diff)
-
test-build-processes.yml (modified) (7 diffs)
-
upgrade-develop-testing.yml (modified) (3 diffs)
-
upgrade-testing.yml (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/install-testing.yml
r60532 r60534 48 48 contents: read 49 49 secrets: inherit 50 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' )}}50 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 51 51 with: 52 52 wp-version: ${{ inputs.wp-version }} … … 64 64 contents: read 65 65 runs-on: ${{ matrix.os }} 66 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' )}}66 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 67 67 timeout-minutes: 10 68 68 needs: [ build-test-matrix ] -
trunk/.github/workflows/local-docker-environment.yml
r60532 r60534 74 74 contents: read 75 75 secrets: inherit 76 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' )}}76 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 77 77 with: 78 78 wp-version: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }} -
trunk/.github/workflows/phpunit-tests.yml
r60532 r60534 64 64 contents: read 65 65 secrets: inherit 66 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') }}66 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }} 67 67 strategy: 68 68 fail-fast: false … … 141 141 contents: read 142 142 secrets: inherit 143 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') }}143 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }} 144 144 strategy: 145 145 fail-fast: false … … 193 193 contents: read 194 194 secrets: inherit 195 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') }}195 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }} 196 196 strategy: 197 197 fail-fast: false … … 233 233 contents: read 234 234 secrets: inherit 235 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') }}235 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }} 236 236 strategy: 237 237 fail-fast: false … … 247 247 phpunit-test-groups: ${{ matrix.phpunit-test-groups }} 248 248 249 # 250 # Runs unit tests for forks. 251 # 252 # Because the majority of forks will belong to personal GitHub accounts (which are limited to just 20 concurrent jobs 253 # at any given time), forks only run a small subset of test combinations. This allows contributors to open pull 254 # requests back to their own forks for testing purposes without having to wait hours for workflow to complete. 255 # 256 limited-matrix-for-forks: 257 name: PHP ${{ matrix.php }} 258 uses: ./.github/workflows/reusable-phpunit-tests-v3.yml 259 permissions: 260 contents: read 261 secrets: inherit 262 if: ${{ ! startsWith( github.repository, 'WordPress/' ) && github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }} 263 strategy: 264 fail-fast: false 265 matrix: 266 php: [ '7.2', '8.4' ] 267 db-version: [ '8.4', '11.8' ] 268 db-type: [ 'mysql', 'mariadb' ] 269 multisite: [ false ] 270 271 include: 272 # Include one multisite job for each database type. 273 - php: '8.4' 274 db-version: '8.4' 275 db-type: 'mysql' 276 multisite: true 277 - php: '8.4' 278 db-version: '11.8' 279 db-type: 'mariadb' 280 multisite: true 281 # Test with memcached. 282 - php: '8.4' 283 db-version: '8.4' 284 db-type: 'mysql' 285 multisite: true 286 memcached: true 287 # Run specific test groups once. 288 - php: '8.4' 289 db-version: '8.4' 290 db-type: 'mysql' 291 phpunit-test-groups: 'html-api-html5lib-tests' 292 293 exclude: 294 # Exclude PHP versions that are not supported by the database versions. 295 - db-type: 'mysql' 296 db-version: '11.8' 297 - db-type: 'mariadb' 298 db-version: '8.4' 299 300 with: 301 php: ${{ matrix.php }} 302 db-version: ${{ matrix.db-version }} 303 db-type: ${{ matrix.db-type }} 304 memcached: ${{ matrix.memcached || false }} 305 phpunit-test-groups: ${{ matrix.phpunit-test-groups || '' }} 306 249 307 slack-notifications: 250 308 name: Slack Notifications … … 253 311 actions: read 254 312 contents: read 255 needs: [ test-with-mysql, test-with-mariadb, test-innovation-releases, specific-test-groups ]313 needs: [ test-with-mysql, test-with-mariadb, test-innovation-releases, specific-test-groups, limited-matrix-for-forks ] 256 314 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 257 315 with: -
trunk/.github/workflows/test-and-zip-default-themes.yml
r60348 r60534 190 190 needs: [ check-for-empty-files, test-build-scripts ] 191 191 timeout-minutes: 10 192 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request'}}192 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 193 193 strategy: 194 194 fail-fast: false -
trunk/.github/workflows/test-build-processes.yml
r60080 r60534 46 46 47 47 jobs: 48 # Tests the WordPress Core build process on multiple operating systems.48 # Tests the WordPress Core build process. 49 49 test-core-build-process: 50 50 name: Core running from ${{ matrix.directory }} … … 56 56 fail-fast: false 57 57 matrix: 58 os: [ ubuntu-24.04, windows-2022]58 os: [ 'ubuntu-24.04' ] 59 59 directory: [ 'src', 'build' ] 60 60 include: 61 61 # Only prepare artifacts for Playground once. 62 - os: ubuntu-24.0462 - os: 'ubuntu-24.04' 63 63 directory: 'build' 64 64 save-build: true 65 65 prepare-playground: ${{ github.event_name == 'pull_request' && true || '' }} 66 67 66 with: 68 67 os: ${{ matrix.os }} … … 71 70 prepare-playground: ${{ matrix.prepare-playground && matrix.prepare-playground || false }} 72 71 73 # Tests the WordPress Core build process on MacOS.72 # Tests the WordPress Core build process on additional operating systems. 74 73 # 75 # This is separate from the job above in order to use stricter conditions when determining when to run. 76 # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate. 74 # This is separate from the job above in order to use stricter conditions when determining when to test additional 75 # operating systems. This avoids unintentionally consuming excessive minutes. Windows-based jobs consume minutes at a 76 # 2x rate, and MacOS-based jobs at a 10x rate. 77 # See https://docs.github.com/en/billing/concepts/product-billing/github-actions#per-minute-rates. 77 78 # 78 79 # The `matrix` and `runner` contexts are not available for use within `if` expressions. So there is 79 80 # currently no way to determine the OS being used on a given job. 80 81 # See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability. 81 test-core-build-process- macos:82 test-core-build-process-additional-os: 82 83 name: Core running from ${{ matrix.directory }} 83 84 uses: ./.github/workflows/reusable-test-core-build-process.yml … … 88 89 fail-fast: false 89 90 matrix: 90 os: [ macos-14]91 os: [ 'macos-14', 'windows-2022' ] 91 92 directory: [ 'src', 'build' ] 92 93 with: … … 94 95 directory: ${{ matrix.directory }} 95 96 96 # Tests the Gutenberg plugin build process on multiple operating systems when runwithin a wordpress-develop checkout.97 # Tests the Gutenberg plugin build process within a wordpress-develop checkout. 97 98 test-gutenberg-build-process: 98 name: Gutenberg running from ${{ matrix.directory }}99 uses: ./.github/workflows/reusable-test-gutenberg-build-process.yml100 permissions:101 contents: read102 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}103 strategy:104 fail-fast: false105 matrix:106 os: [ ubuntu-24.04, windows-2022 ]107 directory: [ 'src', 'build' ]108 with:109 os: ${{ matrix.os }}110 directory: ${{ matrix.directory }}111 112 # Tests the Gutenberg plugin build process on MacOS when run within a wordpress-develop checkout.113 #114 # This is separate from the job above in order to use stricter conditions when determining when to run.115 # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate.116 #117 # The `matrix` and `runner` contexts are not available for use within `if` expressions. So there is118 # currently no way to determine the OS being used on a given job.119 # See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability.120 test-gutenberg-build-process-macos:121 99 name: Gutenberg running from ${{ matrix.directory }} 122 100 uses: ./.github/workflows/reusable-test-gutenberg-build-process.yml … … 127 105 fail-fast: false 128 106 matrix: 129 os: [ macos-14 ] 107 os: [ 'ubuntu-24.04' ] 108 directory: [ 'src', 'build' ] 109 with: 110 os: ${{ matrix.os }} 111 directory: ${{ matrix.directory }} 112 113 # Tests the Gutenberg plugin build process on additional operating systems. 114 # 115 # This is separate from the job above in order to use stricter conditions when determining when to test additional 116 # operating systems. This avoids unintentionally consuming excessive minutes. Windows-based jobs consume minutes at a 117 # 2x rate, and MacOS-based jobs at a 10x rate. 118 # See https://docs.github.com/en/billing/concepts/product-billing/github-actions#per-minute-rates. 119 # 120 # The `matrix` and `runner` contexts are not available for use within `if` expressions. So there is 121 # currently no way to determine the OS being used on a given job. 122 # See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability. 123 test-gutenberg-build-process-additional-os: 124 name: Gutenberg running from ${{ matrix.directory }} 125 uses: ./.github/workflows/reusable-test-gutenberg-build-process.yml 126 permissions: 127 contents: read 128 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 129 strategy: 130 fail-fast: false 131 matrix: 132 os: [ 'macos-14', 'windows-2022' ] 130 133 directory: [ 'src', 'build' ] 131 134 with: … … 139 142 actions: read 140 143 contents: read 141 needs: [ test-core-build-process, test-core-build-process- macos, test-gutenberg-build-process, test-gutenberg-build-process-macos ]144 needs: [ test-core-build-process, test-core-build-process-additional-os, test-gutenberg-build-process, test-gutenberg-build-process-additional-os ] 142 145 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 143 146 with: -
trunk/.github/workflows/upgrade-develop-testing.yml
r60321 r60534 48 48 name: Build 49 49 uses: ./.github/workflows/reusable-build-package.yml 50 if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }} 50 51 permissions: 51 52 contents: read … … 55 56 name: Upgrade from ${{ matrix.wp }} 56 57 uses: ./.github/workflows/reusable-upgrade-testing.yml 57 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' )}}58 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 58 59 needs: [ build ] 59 60 strategy: … … 75 76 - php: '8.4' 76 77 wp: '4.9' 78 with: 79 os: ${{ matrix.os }} 80 php: ${{ matrix.php }} 81 db-type: ${{ matrix.db-type }} 82 db-version: ${{ matrix.db-version }} 83 wp: ${{ matrix.wp }} 84 new-version: develop 85 multisite: ${{ matrix.multisite }} 86 87 # Run a limited set of upgrade tests for the current branch on forks. 88 upgrade-tests-develop-forks: 89 name: Upgrade from ${{ matrix.wp }} 90 uses: ./.github/workflows/reusable-upgrade-testing.yml 91 if: ${{ github.repository != 'WordPress/wordpress-develop' }} 92 needs: [ build ] 93 strategy: 94 fail-fast: false 95 matrix: 96 os: [ 'ubuntu-24.04' ] 97 php: [ '7.2', '8.4' ] 98 db-type: [ 'mysql' ] 99 db-version: [ '8.4' ] 100 # WordPress 4.9 is the oldest version that supports PHP 7.2. 101 wp: [ '6.7', '6.8' ] 102 multisite: [ false, true ] 103 104 exclude: 105 # 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. 106 - php: '7.2' 107 db-version: '8.4' 77 108 with: 78 109 os: ${{ matrix.os }} -
trunk/.github/workflows/upgrade-testing.yml
r60532 r60534 59 59 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 60 60 uses: ./.github/workflows/reusable-upgrade-testing.yml 61 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' )}}61 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 62 62 strategy: 63 63 fail-fast: false … … 94 94 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 95 95 uses: ./.github/workflows/reusable-upgrade-testing.yml 96 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' )}}96 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 97 97 strategy: 98 98 fail-fast: false … … 122 122 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 123 123 uses: ./.github/workflows/reusable-upgrade-testing.yml 124 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' )}}124 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 125 125 strategy: 126 126 fail-fast: false … … 154 154 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 155 155 uses: ./.github/workflows/reusable-upgrade-testing.yml 156 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' )}}156 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 157 157 strategy: 158 158 fail-fast: false … … 182 182 name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }} 183 183 uses: ./.github/workflows/reusable-upgrade-testing.yml 184 if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' )}}184 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 185 185 strategy: 186 186 fail-fast: false
Note: See TracChangeset
for help on using the changeset viewer.