From 142611b92eb80c9c06a584d82fbe80a63be4dd66 Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sat, 29 Jun 2024 10:27:23 +0330 Subject: [PATCH] Create pint.yml --- .github/workflows/pint.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/pint.yml diff --git a/.github/workflows/pint.yml b/.github/workflows/pint.yml new file mode 100644 index 0000000..c2beda1 --- /dev/null +++ b/.github/workflows/pint.yml @@ -0,0 +1,34 @@ +name: Fix Code Style + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [8.3] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: json, dom, curl, libxml, mbstring + coverage: none + + - name: Install Pint + run: composer global require laravel/pint + + - name: Run Pint + run: pint + + - name: Commit linted files + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "Fixes coding style" +