File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed
Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change 1- .PHONY : qa lint cs csf phpstan tests coverage
1+ .PHONY : install qa cs csf phpstan tests coverage-clover coverage-html
22
3- all :
4- @awk ' BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m<target>\033[0m\n\nTargets:\n"}'
5- @grep -h -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
3+ install :
4+ composer update
65
7- # QA
6+ qa : phpstan cs
87
9- qa : lint phpstan cs # # Check code quality - coding style and static analysis
10-
11- lint : # # Check PHP files syntax
12- vendor/bin/linter src tests
13-
14- cs : # # Check PHP files coding style
8+ cs :
9+ ifdef GITHUB_ACTION
10+ vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr
11+ else
1512 vendor/bin/codesniffer src tests
13+ endif
1614
17- csf : # # Fix PHP files coding style
15+ csf :
1816 vendor/bin/codefixer src tests
1917
20- phpstan : # # Analyse code with PHPStan
18+ phpstan :
2119 vendor/bin/phpstan analyse -l max -c phpstan.neon src
2220
23- # Tests
24-
25- tests : # # Run all tests
21+ tests :
2622 vendor/bin/tester -s -p php --colors 1 -C tests/cases
2723
28- coverage : # # Generate code coverage in XML format
24+ coverage-clover :
2925 vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases
26+
27+ coverage-html :
28+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases
You can’t perform that action at this time.
0 commit comments