Changeset 59815
- Timestamp:
- 02/12/2025 02:59:06 PM (2 months ago)
- Location:
- trunk/.github/workflows
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/reusable-upgrade-testing.yml
r59720 r59815 15 15 type: 'string' 16 16 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.' 18 18 type: 'string' 19 19 default: 'latest' … … 50 50 # - Creates a `wp-config.php` file. 51 51 # - Installs WordPress. 52 # - Checks the version of WordPress before the upgrade. 52 53 # - Updates to the latest minor version. 54 # - Updates the database after the minor update. 55 # - Checks the version of WordPress after the minor update. 53 56 # - Updates to the version of WordPress being tested. 57 # - Updates the database. 58 # - Checks the version of WordPress after the upgrade. 54 59 upgrade-tests: 55 60 name: ${{ inputs.wp }} to ${{ inputs.new-version }} / PHP ${{ inputs.php }} with ${{ 'mariadb' == inputs.db-type && 'MariaDB' || 'MySQL' }} ${{ inputs.db-version }}${{ inputs.multisite && ' multisite' || '' }} … … 97 102 --admin_password=password --admin_email=me@example.org --skip-email 98 103 104 - name: Pre-upgrade version check 105 run: wp core version 106 99 107 - name: Update to the latest minor version 100 108 run: wp core update --minor 101 109 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 102 127 - name: Upgrade to WordPress ${{ inputs.new-version }} 128 if: ${{ inputs.new-version != 'develop' }} 103 129 run: | 104 130 wp core update ${{ 'latest' != inputs.new-version && '--version="${WP_VERSION}"' || '' }} 105 131 env: 106 132 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.