Skip to content

Commit 5d2be1b

Browse files
committed
Make: polished
1 parent dce0230 commit 5d2be1b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Makefile

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
1-
.PHONY: install qa cs csf phpstan tests coverage
2-
1+
.PHONY: install
32
install:
43
composer update
54

5+
.PHONY: qa
66
qa: phpstan cs
77

8+
.PHONY: cs
89
cs:
910
ifdef GITHUB_ACTION
10-
vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr
11+
vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp -q --report=checkstyle src tests | cs2pr
1112
else
12-
vendor/bin/codesniffer src tests
13+
vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp src tests
1314
endif
1415

16+
.PHONY: csf
1517
csf:
16-
vendor/bin/codefixer src tests
18+
vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp src tests
1719

20+
.PHONY: phpstan
1821
phpstan:
1922
vendor/bin/phpstan analyse -c phpstan.neon
2023

24+
.PHONY: tests
2125
tests:
2226
vendor/bin/codecept build
2327
vendor/bin/codecept run --debug
2428

29+
.PHONY: coverage
2530
coverage:
2631
ifdef GITHUB_ACTION
2732
vendor/bin/codecept build

0 commit comments

Comments
 (0)