1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Files
archived-web-php/Makefile
Andreas Möller d3b6b3ed67 Enhancement: Run friendsofphp/php-cs-fixer on GitHub Actions
Co-authored-by: Markus Staab <maggus.staab@googlemail.com>

Closes GH-559.
2022-07-11 19:19:15 +02:00

16 lines
576 B
Makefile

.PHONY: help
help: ## Displays this list of targets with descriptions
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: coding-standards
coding-standards: vendor ## Fixes code style issues with friendsofphp/php-cs-fixer
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --verbose
.PHONY: tests
tests: ## Runs tests
php tests/run-tests.php -j3 -q
vendor: composer.json composer.lock
composer validate --strict
composer install --no-interaction --no-progress