Make WordPress Core

Changeset 58345


Ignore:
Timestamp:
06/05/2024 06:23:08 PM (4 months ago)
Author:
desrosj
Message:

Build/Test Tools: Simplify inputs for build process testing.

This introduces a new input to separate the ability to save the built WordPress ZIP from generating the artifacts necessary for comments with Playground testing details.

The ZIP file is used by the performance testing workflow for performing comparisons, so it should be built and saved for every push event. The Playground related steps should only run on pull_request.

Follow up to [58274].

Props jorbin.
See #59416.

Location:
trunk/.github/workflows
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-test-core-build-process.yml

    r58274 r58345  
    2222        type: 'boolean'
    2323        default: true
     24      save-build:
     25        description: 'Whether to save a ZIP of built WordPress as an artifact.'
     26        required: false
     27        type: 'boolean'
     28        default: false
    2429      prepare-playground:
    2530        description: 'Whether to prepare the artifacts needed for Playground testing.'
     
    98103      - name: Upload ZIP as a GitHub Actions artifact
    99104        uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
    100         if: ${{ inputs.prepare-playground }}
     105        if: ${{ inputs.save-build || inputs.prepare-playground }}
    101106        with:
    102107          name: wordpress-build-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
     
    105110
    106111      - name: Save PR number
    107         if: ${{ inputs.prepare-playground && github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request' }}
     112        if: ${{ inputs.prepare-playground }}
    108113        run: |
    109114          mkdir -p ./pr-number
  • trunk/.github/workflows/test-build-processes.yml

    r58274 r58345  
    4545          - os: ubuntu-latest
    4646            directory: 'build'
    47             prepare-playground: true
     47            save-build: true
     48            prepare-playground: ${{ github.event_name == 'pull_request' && true || '' }}
     49
    4850    with:
    4951      os: ${{ matrix.os }}
    5052      directory: ${{ matrix.directory }}
     53      save-build: ${{ matrix.save-build && matrix.save-build || false }}
    5154      prepare-playground: ${{ matrix.prepare-playground && matrix.prepare-playground || false }}
    5255
Note: See TracChangeset for help on using the changeset viewer.