Skip to content

Commit d1f9d22

Browse files
committed
run PHPUnit tests before deleting files
So that in case of some syntax or configuration issues this will surface them.
1 parent b0498f1 commit d1f9d22

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

bin/test-micro-commands.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ lint "app/Policies/FlyPolicy.php"
8484
./vendor/bin/lucid list:features
8585
./vendor/bin/lucid list:services
8686

87+
# Run PHPUnit tests
88+
if [ ! -f ".env" ]; then
89+
echo 'APP_KEY=' > .env
90+
php artisan key:generate
91+
fi
92+
93+
./vendor/bin/phpunit
94+
8795
./vendor/bin/lucid delete:feature trade
8896
./vendor/bin/lucid delete:job submitTradeRequest shipping
8997
./vendor/bin/lucid delete:job sail boat
@@ -93,13 +101,6 @@ lint "app/Policies/FlyPolicy.php"
93101
./vendor/bin/lucid delete:policy fly
94102
rm app/Http/Controllers/TradeController.php
95103

96-
# Run PHPUnit tests
97-
if [ ! -f ".env" ]; then
98-
echo 'APP_KEY=' > .env
99-
php artisan key:generate
100-
fi
101-
102-
./vendor/bin/phpunit
103104

104105
echo "\nPASSED!\n"
105106

0 commit comments

Comments
 (0)