From bfed40f5357bffad2c2c72885ccd34aae81da545 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 28 Jul 2025 16:04:45 +0530 Subject: [PATCH] Add Laravel Pint workflow for code style checks --- .github/workflows/pint.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pint.yaml diff --git a/.github/workflows/pint.yaml b/.github/workflows/pint.yaml new file mode 100644 index 0000000..9796e97 --- /dev/null +++ b/.github/workflows/pint.yaml @@ -0,0 +1,30 @@ +name: Laravel Pint + +on: + pull_request: + workflow_dispatch: + +jobs: + pint: + runs-on: ubuntu-latest + + steps: + # Reinstall system libraries to ensure compatibility + - name: Ensure system libraries are up-to-date + run: | + sudo apt-get update + sudo apt-get install --reinstall --yes git libc6 + + - uses: actions/checkout@v4 + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "8.3" + + - name: Install dependencies + run: composer install --no-interaction --prefer-dist --no-progress + + # Run pint in test mode, check only files different from master branch + - name: Run Laravel Pint in test mode + run: vendor/bin/pint --test --diff=master