Skip to content

Commit aeb7f2a

Browse files
committed
Build/Test Tools: Preserve filenames in installation test downloads.
Download release archives with `curl` and extract them with the system `tar` to avoid truncated filenames from `PharData`. This fixes the Twenty Twenty-Two pattern loading failure in WordPress 5.9 and 6.0 installation smoke checks. Keep `wp core download` for `nightly` and `trunk`, which use ZIP archives. Developed in: #15152 Props adrianmoldovanwp. Fixes #66403. git-svn-id: https://develop.svn.wordpress.org/trunk@65004 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 390a294 commit aeb7f2a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,14 @@ jobs:
140140
with:
141141
version: ${{ contains( fromJSON('["5.4", "5.5"]'), matrix.php ) && '2.4.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.
143145
- name: Download WordPress
144-
run: wp core download --version="${WP_VERSION}"
146+
run: |
147+
case "${WP_VERSION}" in
148+
nightly|trunk) wp core download --version=nightly ;;
149+
*) curl -fsSL "https://wordpress.org/wordpress-${WP_VERSION}.tar.gz" | tar xz --strip-components=1 ;;
150+
esac
145151
env:
146152
WP_VERSION: ${{ inputs.wp-version || 'nightly' }}
147153

0 commit comments

Comments
 (0)