Changeset 58274
- Timestamp:
- 05/31/2024 06:11:30 PM (4 months ago)
- Location:
- trunk/.github/workflows
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/reusable-test-core-build-process.yml
r58165 r58274 22 22 type: 'boolean' 23 23 default: true 24 prepare-playground: 25 description: 'Whether to prepare the artifacts needed for Playground testing.' 26 required: false 27 type: 'boolean' 28 default: false 24 29 25 30 env: … … 40 45 # - Ensures version-controlled files are not modified or deleted. 41 46 # - Uploads the ZIP as a GitHub Actions artifact (when building to the build directory). 47 # - Saves the pull request number to a text file. 48 # - Uploads the pull request number as an artifact. 42 49 build-process-tests: 43 50 name: Core running from ${{ inputs.directory }} / ${{ inputs.os == 'macos-latest' && 'MacOS' || inputs.os == 'windows-latest' && 'Windows' || 'Linux' }} … … 91 98 - name: Upload ZIP as a GitHub Actions artifact 92 99 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 93 if: ${{ inputs. directory == 'build' && 'ubuntu-latest' == inputs.os}}100 if: ${{ inputs.prepare-playground }} 94 101 with: 95 102 name: wordpress-build-${{ github.event_name == 'pull_request' && github.event.number || github.sha }} 96 103 path: wordpress.zip 97 104 if-no-files-found: error 105 106 - name: Save PR number 107 if: ${{ inputs.prepare-playground && github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request' }} 108 run: | 109 mkdir -p ./pr-number 110 echo ${{ github.event.number }} > ./pr-number/NR 111 112 # Uploads the PR number as an artifact for the Pull Request Commenting workflow to download and then 113 # leave a comment detailing how to test the PR within WordPress Playground. 114 - name: Upload PR number as artifact 115 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 116 if: ${{ inputs.prepare-playground && github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request' }} 117 with: 118 name: pr-number 119 path: pr-number/ -
trunk/.github/workflows/test-build-processes.yml
r58165 r58274 41 41 os: [ ubuntu-latest, windows-latest ] 42 42 directory: [ 'src', 'build' ] 43 include: 44 # Only prepare artifacts for Playground once. 45 - os: ubuntu-latest 46 directory: 'build' 47 prepare-playground: true 43 48 with: 44 49 os: ${{ matrix.os }} 45 50 directory: ${{ matrix.directory }} 51 prepare-playground: ${{ matrix.prepare-playground && matrix.prepare-playground || false }} 46 52 47 53 # Tests the WordPress Core build process on MacOS. … … 107 113 directory: ${{ matrix.directory }} 108 114 109 # Uploads the PR number as an artifact for the Pull Request Commenting workflow to download and then110 # leave a comment detailing how to test the PR within WordPress Playground.111 playground-comment:112 name: Leave WordPress Playground details113 runs-on: ubuntu-latest114 permissions:115 actions: write116 continue-on-error: true117 needs: [ test-core-build-process, test-core-build-process-macos, test-gutenberg-build-process, test-gutenberg-build-process-macos ]118 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request' }}119 120 steps:121 - name: Save PR number122 run: |123 mkdir -p ./pr-number124 echo ${{ github.event.number }} > ./pr-number/NR125 126 - name: Upload PR number as artifact127 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1128 with:129 name: pr-number130 path: pr-number/131 132 115 slack-notifications: 133 116 name: Slack Notifications
Note: See TracChangeset
for help on using the changeset viewer.