File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change 1
- .PHONY : install qa cs csf phpstan tests coverage-clover coverage-html
1
+ .PHONY : install qa cs csf phpstan tests coverage
2
2
3
3
install :
4
4
composer update
5
5
6
6
qa : phpstan cs
7
7
8
8
cs :
9
- @echo " OK"
9
+ ifdef GITHUB_ACTION
10
+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp -q --report=checkstyle src tests | cs2pr
11
+ else
12
+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp src tests
13
+ endif
10
14
11
15
csf :
12
- @echo " OK "
16
+ vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 --colors -nsp src tests
13
17
14
18
phpstan :
15
- @echo " OK "
19
+ vendor/bin/phpstan analyse -c phpstan.neon
16
20
17
21
tests :
18
- vendor/bin/tester -s -p php --colors 1 -C tests/cases
19
-
20
- coverage-clover :
21
- vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases
22
-
23
- coverage-html :
24
- vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases
22
+ vendor/bin/tester -s -p php --colors 1 -C tests/Cases
23
+
24
+ coverage :
25
+ ifdef GITHUB_ACTION
26
+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.xml --coverage-src src tests/Cases
27
+ else
28
+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.html --coverage-src src tests/Cases
29
+ endif
You can’t perform that action at this time.
0 commit comments