33 lines
801 B
YAML
33 lines
801 B
YAML
# 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.2"
|
|
|
|
- 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
|