From 8b3a642ad2c414a8ba64bc9ef56bba267feb0b0d Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Tue, 31 Oct 2023 17:43:17 +0700 Subject: [PATCH] feat: add php cs fixer checker with workflow --- .github/workflows/php-cs-fixer.yml | 18 ++++++++++++++++++ 1 file changed, 18 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..90d3b99 --- /dev/null +++ b/.github/workflows/php-cs-fixer.yml @@ -0,0 +1,18 @@ +name: Check & fix styling + +on: [push] + +jobs: + php-cs-fixer: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + + - name: Run PHP CS Fixer + uses: docker://oskarstark/php-cs-fixer-ga + with: + args: --config=.php-cs-fixer.dist.php --allow-risky=yes