Skip to content

Commit

Permalink
Generic name for previous version of WP tests. (#62853)
Browse files Browse the repository at this point in the history
Co-authored-by: peterwilsoncc <[email protected]>
Co-authored-by: talldan <[email protected]>
  • Loading branch information
3 people authored Jun 26, 2024
1 parent 7bca2fa commit 913ebe0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,15 @@ jobs:
include:
# Test with the previous WP version.
- php: '7.2'
wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }}
wordpress: 'previous major version'
- php: '7.4'
wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }}
wordpress: 'previous major version'
- php: '8.2'
wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }}
wordpress: 'previous major version'

env:
WP_ENV_PHP_VERSION: ${{ matrix.php }}
WP_ENV_CORE: ${{ matrix.wordpress == '' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wordpress ) }}
WP_ENV_CORE: ${{ matrix.wordpress == '' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', needs.compute-previous-wordpress-version.outputs.previous-wordpress-version ) }}

steps:
- name: Checkout repository
Expand Down Expand Up @@ -240,6 +240,7 @@ jobs:
npm run wp-env run tests-wordpress php -i
npm run wp-env run tests-wordpress /var/www/html/wp-content/plugins/gutenberg/vendor/bin/phpunit -- --version
npm run wp-env run tests-wordpress locale -a
npm run wp-env run tests-cli wp core version
- name: Running single site unit tests
if: ${{ ! matrix.multisite }}
Expand Down

0 comments on commit 913ebe0

Please sign in to comment.