Skip to content

Commit bb2b40f

Browse files
authored
Workflows
1 parent 936b520 commit bb2b40f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/wordpress-tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -272,16 +272,16 @@ jobs:
272272
sudo apt-get install -y rsync
273273
sudo rsync -a /tmp/wordpress-tests-lib/ /wordpress-tests-lib/ || echo "::warning::Failed to sync files with rsync"
274274
fi
275-
275+
276276
# Verify files in both locations
277-
if [ -f "/wordpress-tests-lib/includes/functions.php" ]; then
278-
echo "WordPress test files successfully copied to /wordpress-tests-lib/"
279-
else
280-
echo "::warning::Files may be missing in /wordpress-tests-lib, creating core files if needed"
281-
sudo mkdir -p /wordpress-tests-lib/includes/
282-
if ! sudo cp -f /tmp/wordpress-tests-lib/includes/functions.php /wordpress-tests-lib/includes/; then echo "::warning::Failed to copy functions.php"; fi
283-
if ! sudo cp -f /tmp/wordpress-tests-lib/wp-tests-config.php /wordpress-tests-lib/; then echo "::warning::Failed to copy wp-tests-config.php"; fi
284-
fi
277+
if [ -f "/wordpress-tests-lib/includes/functions.php" ]; then
278+
echo "WordPress test files successfully copied to /wordpress-tests-lib/"
279+
else
280+
echo "::warning::Files may be missing in /wordpress-tests-lib, creating core files if needed"
281+
sudo mkdir -p /wordpress-tests-lib/includes/
282+
if ! sudo cp -f /tmp/wordpress-tests-lib/includes/functions.php /wordpress-tests-lib/includes/; then echo "::warning::Failed to copy functions.php"; fi
283+
if ! sudo cp -f /tmp/wordpress-tests-lib/wp-tests-config.php /wordpress-tests-lib/; then echo "::warning::Failed to copy wp-tests-config.php"; fi
284+
fi
285285
286286
# Create or copy required class-basic-object.php file if missing
287287
if [ ! -f "/tmp/wordpress-tests-lib/includes/class-basic-object.php" ]; then

0 commit comments

Comments
 (0)