Skip to content

barkinmeric/laravel-pint-action

This branch is 3 commits ahead of, 2 commits behind aglipanci/laravel-pint-action:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/laravel-pint-action@2.0.0
          with:
            preset: laravel
            verboseMode: true
            testMode: true
            configPath: "vendor/my-company/coding-style/pint.json"
            pintVersion: 1.8.0
            onlyDirty: true
            useComposer: true
          

ℹ️ Starting from version 2 you can specify the Pint version to be used by specifying a pintVersion in your configuration file.

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.

You can see Laravel Pint Action running on my demo repository.

About

GitHub Action for Laravel Pint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 90.1%
  • Dockerfile 9.9%