Skip to content

Use Laravel Pint in GitHub action. #486

Use Laravel Pint in GitHub action.

Use Laravel Pint in GitHub action. #486

Workflow file for this run

name: Code Analysis and Linting
on:
pull_request:
paths-ignore:
- "**.md"
push:
paths-ignore:
- "**.md"
jobs:
tests:
runs-on: ubuntu-latest
name: Code Analysis
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: composer:v2
coverage: none
- name: Checkout laravel-pint code
uses: actions/checkout@v4
with:
repository: 'laravel/pint'
ref: 'v1.16.1'
path: '.laravel-pint'
- name: Install dependencies
run: |
cd .laravel-pint/
composer install
cd ..
- name: Run
run: ./.laravel-pint/builds/pint --test