Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aglipanci/laravel-pint-action
GitHub Action for Laravel Pint
https://github.com/aglipanci/laravel-pint-action
codestyle github-actions laravel
Last synced: 3 months ago
JSON representation
GitHub Action for Laravel Pint
- Host: GitHub
- URL: https://github.com/aglipanci/laravel-pint-action
- Owner: aglipanci
- Created: 2022-06-24T11:17:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T15:18:18.000Z (4 months ago)
- Last Synced: 2024-08-13T14:49:24.548Z (3 months ago)
- Topics: codestyle, github-actions, laravel
- Language: Shell
- Homepage: https://laravel.com/docs/master/pint
- Size: 22.5 KB
- Stars: 79
- Watchers: 3
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Action for Laravel Pint
GitHub Action implementation of the [Laravel Pint](https://github.com/laravel/pint) Package.
## Usage
Use with [GitHub Actions](https://github.com/features/actions)
_.github/workflows/pint.yml
```
name: PHP Linting
on: pull_request
jobs:
phplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "laravel-pint"
uses: aglipanci/laravel-pint-action@latest
with:
preset: laravel
verboseMode: true
testMode: true
configPath: "vendor/my-company/coding-style/pint.json"
pintVersion: 1.8.0
onlyDirty: 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](https://github.com/stefanzweifel/git-auto-commit-action) or [Create Pull Request Action](https://github.com/marketplace/actions/create-pull-request).
You can see Laravel Pint Action running on my [demo repository](https://github.com/aglipanci/laravel-pint-action-demo/pulls).