Make WordPress Core


Ignore:
Timestamp:
04/03/2024 11:31:43 AM (10 months ago)
Author:
swissspidy
Message:

Build/Test Tools: Migrate to Docker Compose V2.

Compose V2, which was first released in 2020, is included with all currently supported versions of Docker Desktop. Compose V1 stopped receiving updates in July 2023.

The biggest difference is that the command to interact with Compose changed from docker-compose to docker compose.

GitHub has now started removing V1 from Ubuntu & Windows images, which caused all Docker-based GitHub Actions workflows to fail.

This change migrates to the new docker compose command to address these failures.

Props swissspidy, thelovekesh.
Fixes #60901.

File:
1 edited

Legend:

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

    r57757 r57918  
    131131        run: |
    132132          docker -v
    133           docker-compose -v
    134133
    135134      - name: Start Docker environment
     
    142141      - name: WordPress Docker container debug information
    143142        run: |
    144           docker-compose run --rm mysql ${{ env.LOCAL_DB_TYPE }} --version
    145           docker-compose run --rm php php --version
    146           docker-compose run --rm php php -m
    147           docker-compose run --rm php php -i
    148           docker-compose run --rm php locale -a
     143          docker compose run --rm mysql ${{ env.LOCAL_DB_TYPE }} --version
     144          docker compose run --rm php php --version
     145          docker compose run --rm php php -m
     146          docker compose run --rm php php -i
     147          docker compose run --rm php locale -a
    149148
    150149      - name: Install WordPress
     
    185184        env:
    186185          WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}"
    187         run: docker-compose run --rm -e WPT_REPORT_API_KEY -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php
     186        run: docker compose run --rm -e WPT_REPORT_API_KEY -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php
Note: See TracChangeset for help on using the changeset viewer.