From a9eaa55427e63a16081e5641c05fbacb55dc4382 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 28 Mar 2021 20:38:56 +0100 Subject: [PATCH] actions: added a php-cs-fixer run --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b831f2b01..57adef7e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -261,3 +261,21 @@ jobs: with: name: preprocessor_diffs_${{ matrix.php }}_${{ matrix.image }} path: ${{ github.workspace }}/preprocessor_diff*.patch + + codestyle: + name: Code Style checks + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v2 + + - name: Setup PHP and tools + uses: shivammathur/setup-php@2.9.0 + with: + php-version: 7.4 + tools: php-cs-fixer + + - name: Run PHP-CS-Fixer + run: php-cs-fixer fix --dry-run --diff --diff-format=udiff