diff --git a/.changeset/green-baboons-double.md b/.changeset/green-baboons-double.md new file mode 100644 index 00000000..1417d9ea --- /dev/null +++ b/.changeset/green-baboons-double.md @@ -0,0 +1,5 @@ +--- +"@wpengine/wp-graphql-content-blocks": patch +--- + +ci: replace `docker-compose` commands with `docker compose` diff --git a/.github/workflows/test-plugin-nightly.yml b/.github/workflows/test-plugin-nightly.yml index 95641aca..83514ace 100644 --- a/.github/workflows/test-plugin-nightly.yml +++ b/.github/workflows/test-plugin-nightly.yml @@ -19,10 +19,10 @@ jobs: WP_VERSION: 6.5 working-directory: ./ run: | - docker-compose build \ + docker compose build \ --build-arg WP_VERSION=6.5 \ --build-arg PHP_VERSION=8.2 - docker-compose up -d + docker compose up -d - name: Wait for db run: | @@ -32,22 +32,22 @@ jobs: - name: Setup testing framework working-directory: ./ - run: docker exec -e COVERAGE=1 $(docker-compose ps -q wordpress) init-testing-environment.sh + run: docker exec -e COVERAGE=1 $(docker compose ps -q wordpress) init-testing-environment.sh - name: Ensure Correct WordPress version run: | - docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) wp core version --allow-root - docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) wp core upgrade --version=nightly --force --allow-root - docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) wp core version --allow-root + docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) wp core version --allow-root + docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) wp core upgrade --version=nightly --force --allow-root + docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) wp core version --allow-root - name: Install and activate WP GraphQL working-directory: ./ - run: docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) wp plugin install wp-graphql --activate --allow-root + run: docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) wp plugin install wp-graphql --activate --allow-root - name: Install Dependencies working-directory: ./ - run: docker exec -e COVERAGE=1 -w /var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) composer install + run: docker exec -e COVERAGE=1 -w /var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) composer install - name: Run unit tests working-directory: ./ - run: docker exec -e COVERAGE=1 -w /var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) composer test + run: docker exec -e COVERAGE=1 -w /var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) composer test diff --git a/.github/workflows/test-plugin.yml b/.github/workflows/test-plugin.yml index 5a091c52..177df97a 100644 --- a/.github/workflows/test-plugin.yml +++ b/.github/workflows/test-plugin.yml @@ -36,10 +36,10 @@ jobs: WP_VERSION: ${{ matrix.wordpress }} working-directory: ./ run: | - docker-compose build \ + docker compose build \ --build-arg WP_VERSION=${{ matrix.wordpress }} \ --build-arg PHP_VERSION=${{ matrix.php }} - docker-compose up -d + docker compose up -d - name: Wait for db run: | @@ -49,16 +49,16 @@ jobs: - name: Setup testing framework working-directory: ./ - run: docker exec -e COVERAGE=1 $(docker-compose ps -q wordpress) init-testing-environment.sh + run: docker exec -e COVERAGE=1 $(docker compose ps -q wordpress) init-testing-environment.sh - name: Install and activate WP GraphQL working-directory: ./ - run: docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) wp plugin install wp-graphql --activate --allow-root + run: docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) wp plugin install wp-graphql --activate --allow-root - name: Install Dependencies working-directory: ./ - run: docker exec -e COVERAGE=1 -w /var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) composer install + run: docker exec -e COVERAGE=1 -w /var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) composer install - name: Run unit tests working-directory: ./ - run: docker exec -e COVERAGE=1 -w /var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker-compose ps -q wordpress) composer test + run: docker exec -e COVERAGE=1 -w /var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) composer test