From 83c115f9cf8fefddbba002987166568955e5fbd4 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Thu, 22 Feb 2024 10:23:35 -0800 Subject: [PATCH] Create php-cs-fixer.yml --- .github/workflows/php-cs-fixer.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/php-cs-fixer.yml diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml new file mode 100644 index 0000000..2d8bdcb --- /dev/null +++ b/.github/workflows/php-cs-fixer.yml @@ -0,0 +1,26 @@ +name: PHP CS Fixer + +on: + push: + branches: + - main + - master + pull_request: + branches: + - main + - master + +jobs: + php-cs-fixer: + name: PHP CS Fixer + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + run: composer install --no-progress --no-suggest --prefer-dist + + - name: Run PHP CS Fixer + run: php vendor/bin/php-cs-fixer fix --verbose --diff --dry-run