Skip to content

Commit f159ff1

Browse files
committed
Build/Test Tools: Use release ZIPs for installation tests.
Download WordPress release ZIP archives through `wp core download` to preserve long filenames during extraction. Keep nightly and trunk downloads unchanged. Pin WP-CLI to `2.12.0` for PHP `5.6`, `7.0`, and `7.1`, retaining the existing `2.4.0` pin for PHP `5.4` and `5.5`. Developed in: #15252 Props adrianmoldovanwp, lucatume. See #66403. git-svn-id: https://develop.svn.wordpress.org/trunk@65191 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9dfdf85 commit f159ff1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/install-testing.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ jobs:
138138
- name: Set up WP-CLI
139139
uses: $/.github/actions/setup-wp-cli
140140
with:
141-
version: ${{ contains( fromJSON('["5.4", "5.5"]'), matrix.php ) && '2.4.0' || 'latest' }}
141+
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' }}
142142

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

0 commit comments

Comments
 (0)