Skip to content

Commit 8beabf1

Browse files
committed
chore(tests): make sure we keep minimum-stability at dev for our integration tests
1 parent 8ad186c commit 8beabf1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/integration-laravel.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ echo "Install Laravel"
1717
composer create-project --prefer-dist laravel/laravel:$LARAVEL_VERSION ../laravel || exit 1
1818
cd ../laravel
1919

20+
21+
# This had to be added due to https://github.com/laravel/laravel/commit/c1092ec084bb294a61b0f1c2149fddd662f1fc55
22+
# which preventing our local installation quirk
23+
echo "Make sure the minimum stability is dev to allow bringing in our local project"
24+
tmp=$(mktemp)
25+
jq '.["minimum-stability"] = "dev"' composer.json > "$tmp" && mv "$tmp" composer.json
26+
rm "$tmp"
27+
2028
echo "Add package from source"
2129
sed -e 's|"type": "project",|&\n"repositories": [ { "type": "path", "url": "../graphql-laravel" } ],|' -i composer.json || exit 1
2230
composer require --dev "rebing/graphql-laravel:*" || exit 1

0 commit comments

Comments
 (0)