Skip to content

Commit dca9769

Browse files
committed
chore(workflow): Use standalone php cs fixer
1 parent 4b1fbcb commit dca9769

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/phpcsfixer.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
with:
2929
php-version: '8.4'
3030

31-
- name: Install dependencies
32-
env:
33-
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
34-
run: composer require --dev friendsofphp/php-cs-fixer
31+
- name: Download php-cs-fixer standalone
32+
run: |
33+
curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/latest/download/php-cs-fixer.phar -o ./php-cs-fixer
34+
chmod +x ./php-cs-fixer
3535
3636
- name: Run php-cs-fixer and report with reviewdog
3737
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
3838
env:
3939
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040
run: |
4141
files=(${{ steps.changed-files.outputs.all_changed_files }})
42-
./vendor/bin/php-cs-fixer fix --dry-run --diff --format=checkstyle --allow-risky=yes --using-cache=no "${files[@]}" \
42+
./php-cs-fixer fix --dry-run --diff --format=checkstyle --allow-risky=yes --using-cache=no "${files[@]}" \
4343
| reviewdog -f=checkstyle -name="php-cs-fixer" -reporter=github-pr-review -level=error

0 commit comments

Comments
 (0)