Skip to content

Commit 7e92b0c

Browse files
committed
minor cleanup
1 parent 92245e1 commit 7e92b0c

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -212,18 +212,6 @@ jobs:
212212
echo 'Platform reqs failed, running `composer update`'
213213
composer --working-dir="$DIR" update
214214
fi
215-
216-
if [[ "$WP_BRANCH" == 'trunk' || "$WP_BRANCH" == 'previous' ]]; then
217-
VER=$(composer --format=json --working-dir="$DIR" show | jq -r '.installed[] | select( .name == "roots/wordpress" ) | .version')
218-
if [[ -n "$VER" ]]; then
219-
INSVER=$WORDPRESS_TAG
220-
[[ "$WORDPRESS_TAG" == 'trunk' ]] && INSVER="dev-main as $VER"
221-
echo "Supposed to run tests against WordPress $WORDPRESS_TAG, so setting roots/wordpress and roots/wordpress-no-content to \"$INSVER\""
222-
# Composer seems to sometimes have issues with deleting the wordpress dir on its own, so do it manually first.
223-
rm -rf "$DIR/wordpress"
224-
composer --working-dir="$DIR" require --dev "roots/wordpress:$INSVER" "roots/wordpress-no-content:$INSVER"
225-
fi
226-
fi
227215
fi
228216
fi
229217
@@ -244,7 +232,7 @@ jobs:
244232
245233
# Actions seems to slow down if there are a lot of files, so clean up Composer stuff after each test.
246234
# We don't do it for JS stuff, as that might break things with how JS does package deps.
247-
rm -rf "$DIR/vendor" "$DIR/jetpack_vendor" "$DIR/wordpress"
235+
rm -rf "$DIR/vendor" "$DIR/jetpack_vendor"
248236
249237
if $FAIL; then
250238
echo "Tests for $SLUG failed!"

0 commit comments

Comments
 (0)