Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
eye

GitHub Action

Laravel Pint

1.0.0

Laravel Pint

eye

Laravel Pint

Laravel Pint is an opinionated PHP code style fixer for minimalists

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Laravel Pint

uses: aglipanci/[email protected]

Learn more about this action in aglipanci/laravel-pint-action

Choose a version

GitHub Action for Laravel Pint

GitHub Action implementation of the Laravel Pint Package.

Usage

Use with GitHub Actions

.github/workflows/pint.yml

name: PHP Linting
on: pull_request
jobs:
  phplint:
    runs-on: ubuntu-latest
    steps:
        - uses: actions/checkout@v1
        - name: "laravel-pint"
          uses: aglipanci/[email protected]
          with:
            preset: laravel
            verboseMode: true
            testMode: true
            configPath: "vendor/my-company/coding-style/pint.json"
          

If provided, a pint.json file in the root will be used for configuration during run of the Action.

This action DOESN'T commit changes automatically. If you want to achieve such behaviour you have to use it in combination with another action like git-auto-commit Action or Create Pull Request Action