Skip to content

Commit ee5785e

Browse files
committed
Add latest version support to behat tags
1 parent c4569dd commit ee5785e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ then
88
phpunit
99
fi
1010

11+
if [ $WP_VERSION = "latest" ]; then
12+
export WP_VERSION=$(curl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r ".offers[0].current")
13+
fi
14+
1115
# Run the functional tests
1216
BEHAT_TAGS=$(php utils/behat-tags.php)
1317
behat --format progress $BEHAT_TAGS --strict

0 commit comments

Comments
 (0)