From 60a0ed3771cbb9e2affba48a8b7ea8971b26e858 Mon Sep 17 00:00:00 2001 From: Ruben Van Assche Date: Fri, 1 Mar 2024 14:56:33 +0100 Subject: [PATCH] Use CS fixer --- .../workflows/fix-php-code-style-issues.yml | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index 2f32b5f..96e9a2d 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -1,27 +1,23 @@ -name: Fix PHP code style issues +name: Check & fix styling -on: - push: - paths: - - '**.php' - -permissions: - contents: write +on: [push] jobs: - php-code-styling: + php-cs-fixer: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - - name: Fix PHP code style issues - uses: aglipanci/laravel-pint-action@1.0.0 + - name: Run PHP CS Fixer + uses: docker://oskarstark/php-cs-fixer-ga + with: + args: --config=.php-cs-fixer.dist.php --allow-risky=yes - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Fix styling