Make WordPress Core


Ignore:
Timestamp:
08/13/2022 11:23:26 PM (3 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Move the Memcached container into the Docker Compose config.

This allows a developer to use the persistent Memcached object cache on their local development environment via the LOCAL_PHP_MEMCACHED environment variable.

Enable the memcached config via LOCAL_PHP_MEMCACHED=true in the .env file and then restart the environment with npm run env:restart.

Fixes #55700

File:
1 edited

Legend:

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

    r53736 r53895  
    4747  # - Logs Docker debug information (about the Docker installation within the runner).
    4848  # - Starts the WordPress Docker container.
    49   # - Starts the Memcached server after the Docker network has been created (if desired).
    5049  # - Logs general debug information about the runner.
    5150  # - Logs the running Docker containers.
     
    160159          npm run env:start
    161160
    162       # The memcached server needs to start after the Docker network has been set up with `npm run env:start`.
    163       - name: Start the Memcached server.
    164         if: ${{ matrix.memcached }}
    165         run: |
    166           cp tests/phpunit/includes/object-cache.php src/wp-content/object-cache.php
    167           docker run --name memcached --net $(basename "$PWD")_wpdevnet -d memcached
    168 
    169161      - name: General debug information
    170162        run: |
Note: See TracChangeset for help on using the changeset viewer.