From 3febb24d1d9d9427427322adadf1c45191a9fb25 Mon Sep 17 00:00:00 2001 From: jothi Date: Tue, 25 Nov 2025 07:44:18 +0000 Subject: [PATCH] Add .github/workflows/laravel-pint.yaml --- .github/workflows/laravel-pint.yaml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/laravel-pint.yaml diff --git a/.github/workflows/laravel-pint.yaml b/.github/workflows/laravel-pint.yaml new file mode 100644 index 0000000..0e195d7 --- /dev/null +++ b/.github/workflows/laravel-pint.yaml @@ -0,0 +1,32 @@ +# Filename: .github/workflows/laravel-pint.yaml + +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 --prefer-dist --no-interaction --quiet + + # 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