Skip to content

Commit 4d8fb0b

Browse files
authored
Update phpci.yml
1 parent db5d961 commit 4d8fb0b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/phpci.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ jobs:
2222
# run: phpstan analyse src
2323
#- name: Setup problem matchers for Psalm
2424
# run: psalm --output-format=github
25-
- name: Run PHPCS
26-
run: phpcs -q --report=checkstyle cs2pr
25+
- name: PHP Coding Standards Fixer
26+
run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
27+
#- name: Run PHPCS
28+
# run: phpcs --report=checkstyle -q /path/to/code | cs2pr
29+
- name: Check PHP code style
30+
id: phpcs
31+
run: phpcs --report-full --report-checkstyle=./phpcs-report.xml
32+
- name: Show PHPCS results in PR
33+
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
34+
run: cs2pr ./phpcs-report.xml

0 commit comments

Comments
 (0)