diff --git a/Makefile b/Makefile index bd72550..514216e 100644 --- a/Makefile +++ b/Makefile @@ -13,12 +13,23 @@ prod production: # Build application for production update upgrade: # Update application dependencies @$(RUN) composer update && npm update && npm install && npm audit fix -analyze: # Run coding standards and static analysis checks - @$(RUN) app/vendor/bin/php-cs-fixer fix --diff --dry-run && app/vendor/bin/psalm - @$(RUN) npx eslint app/resources/js/**/*.{js,vue} +php-cs-fixer: # Check PHP coding standards with PHP Coding Standards Fixer + @$(RUN) app/vendor/bin/php-cs-fixer fix --diff --dry-run -test: analyze # Run coding standards/static analysis checks and tests - @$(RUN) app/vendor/bin/phpunit --coverage-text +eslint: # Check JavaScript coding standards with ESLint + @$(RUN) npm run cs + +cs coding-standards: php-cs-fixer eslint # Check coding standards + +static-analysis: # Run static analysis checks + @$(RUN) app/vendor/bin/psalm + +analyze: coding-standards static-analysis # Run coding standards and static analysis checks + +test: # Run tests + @$(RUN) app/vendor/bin/phpunit + +suite: analyze test # Run coding standards and static analysis checks and tests coverage: # Generate an HTML coverage report @docker-compose run --rm -e XDEBUG_MODE=coverage app app/vendor/bin/phpunit --coverage-html .coverage