From 85511eeea2b34c980bf61a4b488b8d4ebcf8c322 Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Tue, 16 Jul 2024 12:44:30 +0100 Subject: [PATCH] Try install after wp-cli --- .github/workflows/plugin-check-local.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/plugin-check-local.yml b/.github/workflows/plugin-check-local.yml index d2479b8..b3362da 100644 --- a/.github/workflows/plugin-check-local.yml +++ b/.github/workflows/plugin-check-local.yml @@ -59,6 +59,24 @@ 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: Install wp-cli/extension-command + run: | + wp package install wp-cli/extension-command + shell: bash + - name: Set PLUGIN_DIR run: | PLUGIN_DIR=$(realpath "$BUILD_DIR") @@ -80,11 +98,7 @@ jobs: wp-env start --update shell: bash env: - WP_VERSION: 'null' - - - name: Install the latest WP-CLI Command Extension - run: | - composer require --dev wp-cli/extension-command + WP_VERSION: 'latest' - name: Run Plugin Check run: |