diff --git a/Makefile b/Makefile index 0217b5b..0298109 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ restart: stop start status: docker-compose ps +bash: + docker-compose exec php-fpm bash + tinker: docker-compose exec php-fpm ./artisan tinker @@ -44,8 +47,8 @@ seed-db: fix-permissions: docker-compose exec php-fpm chown -R www-data:www-data storage -lint-code-style: - docker-compose exec php-fpm composer php-cs-fixer fix +fix-code-style: + docker-compose exec php-fpm vendor/bin/pint artisan: docker-compose exec php-fpm ./artisan $(ARGS) @@ -65,5 +68,22 @@ make-storage-link: node-frontend-deps: docker-compose exec php-fpm npm i --legacy-peer-deps +test: + docker-compose exec php-fpm vendor/bin/phpunit + +fix-insights: + docker-compose exec php-fpm ./artisan insights --fix + +insights: + docker-compose exec php-fpm vendor/bin/phpinsights --config-path=./config/insights.php --no-interaction --min-quality=80 --min-complexity=90 --min-architecture=75 --min-style=95 + +rector: + docker-compose exec php-fpm vendor/bin/rector process --dry-run + +static-analysis: + docker-compose exec php-fpm composer static-analysis + +ci: test rector insights static-analysis + init: clone copy-infra-env restart setup-laravel-packages copy-laravel-env setup-laravel-key run-migrations node-frontend-deps build-frontend-prod fix-permissions make-storage-link