Skip to content

Commit 5310ae8

Browse files
committed
Codestyle
1 parent d029254 commit 5310ae8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
code-style-php:
5757
name: Check PHP code style
5858
runs-on: ubuntu-latest
59+
permissions:
60+
contents: read
61+
pull-requests: write
5962
container: joomlaprojects/docker-images:php8.4
6063
needs: [composer]
6164
steps:
@@ -68,8 +71,13 @@ jobs:
6871
env:
6972
PHP_CS_FIXER_IGNORE_ENV: true
7073
run: |
71-
./libraries/vendor/bin/php-cs-fixer fix -vvv --dry-run --diff
72-
./libraries/vendor/bin/phpcs --extensions=php -p --standard=ruleset.xml .
74+
./libraries/vendor/bin/php-cs-fixer fix --show-progress=dots
75+
./libraries/vendor/bin/phpcbf --extensions=php -p --standard=ruleset.xml .
76+
- uses: parkerbxyz/suggest-changes@v2
77+
env:
78+
ACTIONS_STEP_DEBUG: true
79+
with:
80+
comment: 'Your code does not comply with our codestyle. Please commit the suggested changes.'
7381

7482
code-style-js-css:
7583
name: Check Javascript & CSS code style

0 commit comments

Comments
 (0)