Make WordPress Core

Changeset 59815


Ignore:
Timestamp:
02/12/2025 02:59:06 PM (2 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Add a workflow that tests the process of upgrading WordPress to a build of the current branch.

This complements the existing workflow which tests upgrading to an already released version.

Props johnbillion, peterwilsoncc, mukesh27, desrosj, audrasjb, joemcgill.

See #62221

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

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-upgrade-testing.yml

    r59720 r59815  
    1515        type: 'string'
    1616      new-version:
    17         description: 'The version of WordPress to update to.'
     17        description: 'The version of WordPress to update to. Use "latest" to update to the latest version, "develop" to update to the current branch, or provide a specific version number to update to.'
    1818        type: 'string'
    1919        default: 'latest'
     
    5050  # - Creates a `wp-config.php` file.
    5151  # - Installs WordPress.
     52  # - Checks the version of WordPress before the upgrade.
    5253  # - Updates to the latest minor version.
     54  # - Updates the database after the minor update.
     55  # - Checks the version of WordPress after the minor update.
    5356  # - Updates to the version of WordPress being tested.
     57  # - Updates the database.
     58  # - Checks the version of WordPress after the upgrade.
    5459  upgrade-tests:
    5560    name: ${{ inputs.wp }} to ${{ inputs.new-version }} / PHP ${{ inputs.php }} with ${{ 'mariadb' == inputs.db-type && 'MariaDB' || 'MySQL' }} ${{ inputs.db-version }}${{ inputs.multisite && ' multisite' || '' }}
     
    97102          --admin_password=password --admin_email=me@example.org --skip-email
    98103
     104      - name: Pre-upgrade version check
     105        run: wp core version
     106
    99107      - name: Update to the latest minor version
    100108        run: wp core update --minor
    101109
     110      - name: Update the database after the minor update
     111        run: wp core update-db ${{ inputs.multisite && '--network' || '' }}
     112
     113      - name: Post-upgrade version check after the minor update
     114        run: wp core version
     115
     116      - name: Download build artifact for the current branch
     117        if: ${{ inputs.new-version == 'develop' }}
     118        uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
     119        with:
     120          name: wordpress-develop
     121
     122      - name: Upgrade to WordPress at current branch
     123        if: ${{ inputs.new-version == 'develop' }}
     124        run: |
     125          wp core update develop.zip
     126
    102127      - name: Upgrade to WordPress ${{ inputs.new-version }}
     128        if: ${{ inputs.new-version != 'develop' }}
    103129        run: |
    104130          wp core update ${{ 'latest' != inputs.new-version && '--version="${WP_VERSION}"' || '' }}
    105131        env:
    106132          WP_VERSION: ${{ inputs.new-version }}
     133
     134      - name: Update the database
     135        run: wp core update-db ${{ inputs.multisite && '--network' || '' }}
     136
     137      - name: Post-upgrade version check
     138        run: wp core version
Note: See TracChangeset for help on using the changeset viewer.