File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,12 @@ concurrency:
3030# Any needed permissions should be configured at the job level.
3131permissions : {}
3232
33-
3433jobs :
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
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ const { execSync } = require( 'child_process' );
55dotenvExpand ( 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.
1114if ( process . env . DOCKER_TOOLBOX_INSTALL_PATH ) {
You can’t perform that action at this time.
0 commit comments