Skip to content

Commit 2d87246

Browse files
committed
Setup Pint as Github Action
1 parent 6dfb44b commit 2d87246

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/pint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check & fix stilyng
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
pint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 2
13+
14+
- name: Run Laravel Pint
15+
uses: aglipanci/[email protected]
16+
with:
17+
preset: laravel
18+
19+
- name: Commit changes
20+
uses: stefanzweifel/git-auto-commit-action@v4
21+
with:
22+
commit_message: Apply fixes from Pint
23+
commit_options: '--no-verify'

0 commit comments

Comments
 (0)