Skip to content

Commit 3cc726a

Browse files
committed
Build/Test Tools: Fix local environment whith memcached.
Follow up to [58358]. Props jorbin. See #61213. git-svn-id: https://develop.svn.wordpress.org/branches/5.9@58593 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0550d4a commit 3cc726a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/phpunit-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ concurrency:
3030
# Any needed permissions should be configured at the job level.
3131
permissions: {}
3232

33-
3433
jobs:
3534
#
3635
# Creates a PHPUnit test job for each PHP/MySQL combination.
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:
4241
contents: read

tools/local-env/scripts/start.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ const { execSync } = require( 'child_process' );
55
dotenvExpand( dotenv.config() );
66

77
// Start the local-env containers.
8-
execSync( 'docker compose up -d wordpress-develop', { stdio: 'inherit' } );
8+
const containers = ( process.env.LOCAL_PHP_MEMCACHED === 'true' )
9+
? 'wordpress-develop memcached'
10+
: 'wordpress-develop';
11+
execSync( `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.
1114
if ( process.env.DOCKER_TOOLBOX_INSTALL_PATH ) {

0 commit comments

Comments
 (0)