From 2ff99ff5ce73017c67c53170f3ead4a4fa604cb5 Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Tue, 16 Jul 2024 12:37:11 +0100 Subject: [PATCH] Use composer only --- .github/workflows/plugin-check-local.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/plugin-check-local.yml b/.github/workflows/plugin-check-local.yml index b7b8547..d2479b8 100644 --- a/.github/workflows/plugin-check-local.yml +++ b/.github/workflows/plugin-check-local.yml @@ -59,19 +59,6 @@ jobs: # Test action. # - - name: Install WP-CLI - run: | - curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar - chmod +x wp-cli.phar - mkdir -p bin - mv wp-cli.phar bin/wp - echo "${PWD}/bin" >> $GITHUB_PATH - shell: bash - - - name: WP-CLI Info - run: wp cli info - shell: bash - - name: Set PLUGIN_DIR run: | PLUGIN_DIR=$(realpath "$BUILD_DIR") @@ -96,7 +83,8 @@ jobs: WP_VERSION: 'null' - name: Install the latest WP-CLI Command Extension - run: wp-env run cli wp cli update --nightly + run: | + composer require --dev wp-cli/extension-command - name: Run Plugin Check run: |