Skip to:
Content

BuddyPress.org

Changeset 13796


Ignore:
Timestamp:
04/13/2024 08:34:42 AM (13 months ago)
Author:
imath
Message:

PHPUnit tests: update once & for all WP latest version to test BP with

Instead of raising WP latest version each time a WP release is published, use the null value for the core property of the wp-env-override.json file so that's it's automagically done.

Props espellcaste

Fixes #9132
Closes https://github.com/buddypress/buddypress/pull/269

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/unit-tests.yml

    r13718 r13796  
    2121        include:
    2222          - php: '8.0'
    23             wp_version: '6.4'
     23            wp_version: 'latest'
    2424          - php: '7.4'
    25             wp_version: '6.4'
     25            wp_version: 'latest'
    2626          - php: '7.4'
    2727            wp_version: '6.1'
     
    8686
    8787      - name: Setup WordPress
    88         run: echo "{\"core\":\"WordPress/WordPress#${WP_VERSION}\"}" >> .wp-env.override.json
     88        run: |
     89          if [ ${{ env.WP_VERSION }} == 'latest' ]; then
     90            echo "{\"core\":null}" >> .wp-env.override.json
     91          else
     92            echo "{\"core\":\"WordPress/WordPress#${WP_VERSION}\"}" >> .wp-env.override.json
     93          fi
    8994
    9095      - name: Install WordPress
Note: See TracChangeset for help on using the changeset viewer.