Skip to content

Commit 68e2e08

Browse files
authored
Update phpci.yml
1 parent 4021cdd commit 68e2e08

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/phpci.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
tools: php-cs-fixer, phpunit, phpstan, psalm, phpcs, cs2pr
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
18+
- run: |
19+
composer install # install your apps dependencies
20+
composer require staabm/annotate-pull-request-from-checkstyle # install cs2pr
21+
vendor/bin/phpstan analyse --error-format=checkstyle | vendor/bin/cs2pr
22+
1723
#- name: Setup problem matchers for php
1824
# run: echo "::add-matcher::${{ runner.tool_cache}}/php.json"
1925
#- name: Setup problem matchers for PHPUnit
@@ -26,9 +32,9 @@ jobs:
2632
# run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
2733
#- name: Run PHPCS
2834
# 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
35+
#- name: Check PHP code style
36+
# id: phpcs
37+
# run: phpcs --report-full --report-checkstyle=./phpcs-report.xml
38+
#- name: Show PHPCS results in PR
39+
# if: ${{ always() && steps.phpcs.outcome == 'failure' }}
40+
# run: cs2pr ./phpcs-report.xml

0 commit comments

Comments
 (0)