Skip to content

Commit

Permalink
Merge pull request #117 from creative-commoners/pulls/1.8/behat
Browse files Browse the repository at this point in the history
FIX Ensure minimum versions of behat-extension are used
  • Loading branch information
GuySartorelli authored Apr 15, 2024
2 parents 76bdb41 + 8811691 commit da13703
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -545,13 +545,16 @@ jobs:
# a) Prevent installation of silverstripe/vendor-plugin < 1.5.2 which contains a bugfix
# which is required for --prefer-lowest to install
# https://github.com/silverstripe/vendor-plugin/pull/49
# b) Set version of PHP to make it easier to copy paste composer.json to local dev environment
# b) Prevent installation of silverstripe/behat-extension < 4.12.0/5.3.0 which contains a new
# is_ci config option - trying to set this option without support will cause a fatal error
# c) Set version of PHP to make it easier to copy paste composer.json to local dev environment
php -r '
$j = json_decode(file_get_contents("composer.json"));
if (empty($j->conflict)) {
$j->conflict = new stdClass();
}
$j->conflict->{"silverstripe/vendor-plugin"} = "<1.5.2";
$j->conflict->{"silverstripe/behat-extension"} = "<4.12.0 || <5.3.0 >=5";
if (empty($j->config->platform)) {
$j->config->platform = new stdClass();
}
Expand Down

0 comments on commit da13703

Please sign in to comment.