Changeset 60534 for trunk/.github/workflows/test-build-processes.yml
- Timestamp:
- 08/01/2025 12:42:18 PM (10 months ago)
- File:
-
- 1 edited
-
trunk/.github/workflows/test-build-processes.yml (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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:
Note: See TracChangeset
for help on using the changeset viewer.