Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/install-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ jobs:
- name: Set up WP-CLI
uses: $/.github/actions/setup-wp-cli
with:
version: ${{ contains( fromJSON('["5.4", "5.5"]'), matrix.php ) && '2.4.0' || 'latest' }}
version: ${{ contains( fromJSON('["5.4", "5.5"]'), matrix.php ) && '2.4.0' || contains( fromJSON('["5.6", "7.0", "7.1"]'), matrix.php ) && '2.12.0' || 'latest' }}

# WP-CLI extracts tarballs with PharData, which truncates paths longer than 100 characters.
# Nightly builds are only available as a zip, which is not affected.
# WP-CLI 2.x extracts tarballs with PharData, which truncates paths longer than 100 characters.
# Zip archives are not affected, so download the zip for every version.
- name: Download WordPress
run: |
case "${WP_VERSION}" in
nightly|trunk) wp core download --version=nightly ;;
*) curl -fsSL "https://wordpress.org/wordpress-${WP_VERSION}.tar.gz" | tar xz --strip-components=1 ;;
*) wp core download "https://wordpress.org/wordpress-${WP_VERSION}.zip" ;;
esac
env:
WP_VERSION: ${{ inputs.wp-version || 'nightly' }}
Expand Down
Loading