From c57ce939f8900438f43b3e71be54482658e65747 Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Fri, 26 Apr 2024 16:14:27 +0530 Subject: [PATCH 01/15] Add composer/semver package --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 90f8a12e..88adc8cc 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ "require": { "php": ">=5.6", "behat/behat": "^3.7", + "composer/semver": "^3.4", "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || ^0.5 || ^0.6.2 || ^0.7.1 || ^1.0.0", "php-parallel-lint/php-console-highlighter": "^1.0", "php-parallel-lint/php-parallel-lint": "^1.3.1", From 7ed37f32b8da01e3375be893fc1c58d6766f9ec4 Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Sat, 27 Apr 2024 23:10:41 +0530 Subject: [PATCH 02/15] Remove latest WP version resolving from run-behat-tests bin file --- bin/run-behat-tests | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bin/run-behat-tests b/bin/run-behat-tests index f9a09bc1..3be14534 100755 --- a/bin/run-behat-tests +++ b/bin/run-behat-tests @@ -19,11 +19,6 @@ if [[ "$@" == *"--help"* ]]; then exit $ret fi -# Turn WP_VERSION into an actual number to make sure our tags work correctly. -if [ "${WP_VERSION-latest}" = "latest" ]; then - export WP_VERSION=$(curl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r ".offers[0].current") -fi - # To retrieve the WP-CLI tests package root folder, we start with this scripts # location. SOURCE="${BASH_SOURCE[0]}" From d0aecb925cb77deea41fa2f9e9193e8891272572 Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Sun, 28 Apr 2024 01:02:33 +0530 Subject: [PATCH 03/15] Add util file to be ignored from WPCS --- phpcs.xml.dist | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 62a1a672..4b69e816 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -63,9 +63,11 @@ so this file does not have to comply with WP naming conventions. --> */utils/behat-tags\.php$ + */utils/wp-version-resolver\.php$ */utils/behat-tags\.php$ + */utils/wp-version-resolver\.php$