Skip to content

Commit

Permalink
ci: Add cs2pr for ECS which now supports checktyle format (#3010)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlemoine committed Jun 7, 2024
1 parent 0cd0cdf commit d84910d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/php-coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ jobs:

- name: Install dependencies
uses: ./.github/actions/setup
with:
PHP_TOOLS: cs2pr

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44

- name: Run coding standards
if: steps.changed-files.outputs.all_changed_files != ''
run: ./vendor/bin/ecs check ${{ steps.changed-files.outputs.files }}
run: ./vendor/bin/ecs check --output-format=checkstyle ${{ join(steps.changed-files.outputs.all_changed_files, ' ') }} | cs2pr
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"phpunit/phpunit": "^9.0",
"rector/rector": "^1.0",
"squizlabs/php_codesniffer": "^3.0",
"symplify/easy-coding-standard": "^12.0",
"symplify/easy-coding-standard": "^12.2",
"szepeviktor/phpstan-wordpress": "^1.1",
"twig/cache-extra": "^3.3",
"wpackagist-plugin/advanced-custom-fields": "^6.0",
Expand Down

0 comments on commit d84910d

Please sign in to comment.