Make WordPress Core

Changeset 58593


Ignore:
Timestamp:
06/28/2024 01:52:31 PM (3 months ago)
Author:
desrosj
Message:

Build/Test Tools: Fix local environment whith memcached.

Follow up to [58358].

Props jorbin.
See #61213.

Location:
branches/5.9
Files:
2 edited

Legend:

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

    r58359 r58593  
    3131permissions: {}
    3232
    33 
    3433jobs:
    3534  #
     
    3736  #
    3837  test-php:
    39     name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }}
     38    name: PHP ${{ matrix.php }}
    4039    uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests.yml@trunk
    4140    permissions:
  • branches/5.9/tools/local-env/scripts/start.js

    r58358 r58593  
    66
    77// Start the local-env containers.
    8 execSync( 'docker compose up -d wordpress-develop', { stdio: 'inherit' } );
     8const containers = ( process.env.LOCAL_PHP_MEMCACHED === 'true' )
     9    ? 'wordpress-develop memcached'
     10    : 'wordpress-develop';
     11execSync( `docker compose up -d -- ${containers}`, { stdio: 'inherit' } );
    912
    1013// If Docker Toolbox is being used, we need to manually forward LOCAL_PORT to the Docker VM.
Note: See TracChangeset for help on using the changeset viewer.