- Timestamp:
- 08/10/2026 05:21:35 PM (5 days ago)
- Location:
- trunk/.github/workflows
- Files:
-
- 3 edited
-
phpunit-tests.yml (modified) (6 diffs)
-
reusable-phpunit-tests-v3.yml (modified) (2 diffs)
-
test-coverage.yml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/phpunit-tests.yml
r62951 r63162 54 54 jobs: 55 55 # Downloads and verifies the Gutenberg build once for all PHPUnit jobs. 56 #57 # This condition is the union of the conditions on the jobs that need it, reduced.58 # The org matrices require `WordPress/wordpress-develop` or a pull request, and the59 # fork matrix requires a pull request, so `wordpress-develop` or a pull request60 # covers every case. Keep it in step with those jobs: a narrower condition orphans61 # them, because a job that needs a skipped job is skipped too, and a broader one62 # downloads a build that nothing consumes.63 56 prepare-gutenberg: 57 name: Prepare Gutenberg Assets 64 58 uses: ./.github/workflows/reusable-prepare-gutenberg.yml 65 59 permissions: … … 145 139 tests-domain: ${{ matrix.tests-domain }} 146 140 report: ${{ matrix.report || false }} 147 gutenberg-artifact: gutenberg-build141 gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }} 148 142 gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }} 149 143 … … 201 195 phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }} 202 196 report: false 203 gutenberg-artifact: gutenberg-build197 gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }} 204 198 gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }} 205 199 … … 251 245 phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }} 252 246 report: false 253 gutenberg-artifact: gutenberg-build247 gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }} 254 248 gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }} 255 249 … … 286 280 db-version: ${{ matrix.db-version }} 287 281 phpunit-test-groups: ${{ matrix.phpunit-test-groups }} 288 gutenberg-artifact: gutenberg-build282 gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }} 289 283 gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }} 290 284 … … 351 345 phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }} 352 346 phpunit-test-groups: ${{ matrix.phpunit-test-groups || '' }} 353 gutenberg-artifact: gutenberg-build347 gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }} 354 348 gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }} 355 349 -
trunk/.github/workflows/reusable-phpunit-tests-v3.yml
r63003 r63162 74 74 default: false 75 75 gutenberg-artifact: 76 description: ' The name of a same-workflow artifact containing the prepared Gutenberg build. Optional: callers that omit it download Gutenberg per job.'77 required: false 78 type: string79 default: ''76 description: 'Whether the Gutenberg-sourced assets are sourced from zip artifact.' 77 required: false 78 type: boolean 79 default: false 80 80 gutenberg-sha: 81 81 description: 'The immutable Gutenberg source SHA verified by the calling workflow.' … … 147 147 persist-credentials: false 148 148 149 # Branches >= 5.9 call this workflow at @trunk without the producer job, so they 150 # pass no artifact. They skip this step and fall back to a per-job download. 149 # Only WordPress 7.0+ include Gutenberg-maintained assets from a built zip file. 151 150 - name: Download prepared Gutenberg build 152 if: inputs.gutenberg-artifact != ''151 if: ${{ inputs.gutenberg-artifact }} 153 152 uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 154 153 with: 155 # Without a run ID, this action reads only from the caller's current workflow run. 156 name: ${{ inputs.gutenberg-artifact }} 154 name: gutenberg-build 157 155 path: gutenberg 158 156 digest-mismatch: error -
trunk/.github/workflows/test-coverage.yml
r62859 r63162 53 53 # Downloads and verifies the Gutenberg build once for all coverage jobs. 54 54 prepare-gutenberg: 55 name: Prepare Gutenberg Assets 55 56 uses: ./.github/workflows/reusable-prepare-gutenberg.yml 56 57 permissions: … … 77 78 multisite: ${{ matrix.multisite }} 78 79 coverage-report: ${{ matrix.coverage-report }} 79 gutenberg-artifact: gutenberg-build80 gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }} 80 81 gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }} 81 82 secrets:
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)