From 5ecde44eb8bf67744b8bab3c319a24c310c3744d Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Fri, 16 Jul 2021 20:57:33 +0200 Subject: [PATCH] test(laravel): run make:* commands --- tests/laravel-test.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/laravel-test.sh b/tests/laravel-test.sh index 8792cae..7aa6efe 100755 --- a/tests/laravel-test.sh +++ b/tests/laravel-test.sh @@ -9,6 +9,29 @@ echo "Installing Laravel" composer create-project --quiet --prefer-dist "laravel/laravel" ../laravel cd ../laravel/ +echo "Preparing Laravel" +./artisan make:cast ExampleCast +./artisan make:channel ExampleChannel +./artisan make:command ExampleCommand +./artisan make:controller ExampleController +./artisan make:event ExampleEvent +./artisan make:exception ExampleException +./artisan make:factory ExampleFactory +./artisan make:job ExampleJob +./artisan make:listener ExampleListener +./artisan make:mail ExampleMail +./artisan make:middleware ExampleMiddleware +./artisan make:model Example +./artisan make:notification ExampleNotification +./artisan make:observer ExampleObserver +./artisan make:policy ExamplePolicy +./artisan make:provider ExampleProvider +./artisan make:request ExampleRequest +./artisan make:resource ExampleResource +./artisan make:rule ExampleRule +./artisan make:seeder ExampleSeeder +./artisan make:test ExampleTest + echo "Adding package from source" sed -e 's|"type": "project",|&"repositories": [ { "type": "path", "url": "../psalm-plugin-laravel" } ],|' -i composer.json COMPOSER_MEMORY_LIMIT=-1 composer require --dev "psalm/plugin-laravel:*"