WordPress.org

Make WordPress Core

Changeset 50318


Ignore:
Timestamp:
02/12/2021 08:33:10 PM (8 months ago)
Author:
desrosj
Message:

Build/Test Tools: Use the correct build matrix for the 4.3 branch.

Follow up to [50317].

See #50401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3/.github/workflows/phpunit-tests.yml

    r50317 r50318  
    130130    strategy:
    131131      matrix:
    132         php: [ '8.0', '7.4', '7.3', '7.2', '7.1', '7.0', '5.6.20' ]
     132        php: [ '5.6' ]
     133        phpunit: [ '4-php-5.6' ]
    133134        os: [ ubuntu-latest ]
    134135        memcached: [ false ]
    135136        include:
    136           # Include job for PHP 7.4 with memcached.
    137           - php: '7.4'
    138             os: ubuntu-latest
    139             memcached: true
    140           # Report the results of the PHP 7.4 without memcached job.
    141           - php: '7.4'
     137          - php: '5.5'
     138            phpunit: '5.5'
    142139            os: ubuntu-latest
    143140            memcached: false
    144             report: true
     141          - php: '5.4'
     142            phpunit: '5.4'
     143            os: ubuntu-latest
     144            memcached: false
     145          - php: '5.3'
     146            phpunit: '5.3'
     147            os: ubuntu-latest
     148            memcached: false
    145149    env:
    146150      LOCAL_PHP: ${{ matrix.php }}-fpm
     151      LOCAL_PHPUNIT: ${{ matrix.phpunit }}-fpm
    147152      LOCAL_PHP_MEMCACHED: ${{ matrix.memcached }}
    148153
     
    180185        run: npx install-changed --install-command="npm ci"
    181186
    182       - name: Get composer cache directory
    183         id: composer-cache
    184         if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm' }}
    185         run: echo "::set-output name=dir::$(composer config cache-files-dir)"
    186 
    187187      - name: Cache Composer dependencies
    188         if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm' }}
     188        if: ${{ env.COMPOSER_INSTALL == true }}
    189189        uses: actions/cache@v2
    190190        env:
     
    197197
    198198      - name: Install Composer dependencies
    199         if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm' }}
     199        if: ${{ env.COMPOSER_INSTALL == true }}
    200200        run: |
    201201          docker-compose run --rm php composer --version
    202 
    203           # The PHPUnit 7.x phar is not compatible with PHP 8 and won't be updated,
    204           # as PHPUnit 7 is no longer supported. The Composer-installed PHPUnit should be
    205           # used for PHP 8 testing instead.
    206           if [ ${{ env.LOCAL_PHP }} == '8.0-fpm' ]; then
    207             docker-compose run --rm php composer install --ignore-platform-reqs
    208             echo "PHPUNIT_SCRIPT=php-composer" >> $GITHUB_ENV
    209           else
    210             docker-compose run --rm php composer install
    211           fi
     202          docker-compose run --rm php composer install
    212203
    213204      - name: Docker debug information
     
    267258        run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group restapi-jsclient
    268259
    269       # Xdebug supports PHP 8 only from version 3.0, which is not released yet.
    270       # Once Xdebug 3.0 is released and included in the Docker image, the IF condition should be removed.
    271260      # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist.
    272261      - name: Run (xDebug) tests
    273         if: ${{ env.LOCAL_PHP != '8.0-fpm' }}
    274262        run: LOCAL_PHP_XDEBUG=true npm run test:php -- -v --group xdebug --exclude-group __fakegroup__
    275263
Note: See TracChangeset for help on using the changeset viewer.