Skip to content

Commit

Permalink
Try install after wp-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-mendonca committed Jul 16, 2024
1 parent 2ff99ff commit 85511ee
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/plugin-check-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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: |
Expand Down

0 comments on commit 85511ee

Please sign in to comment.