Skip to content

Commit aeb6aae

Browse files
Laravel Pint (#84)
1 parent b860085 commit aeb6aae

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

Diff for: .github/workflows/pint-fix.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Fix PHP code style issues
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
fix-php-code-styling:
13+
runs-on: ubuntu-latest
14+
if: github.repository_owner == 'statamic'
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.head_ref }}
21+
token: ${{ secrets.PINT }}
22+
23+
- name: Fix PHP code style issues
24+
uses: aglipanci/laravel-pint-action@v2
25+
with:
26+
pintVersion: 1.16.0
27+
28+
- name: Commit changes
29+
uses: stefanzweifel/git-auto-commit-action@v5
30+
with:
31+
commit_message: Fix styling

Diff for: .github/workflows/pint-link.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint PHP code style issues
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.php'
7+
8+
jobs:
9+
lint-php-code-styling:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Check PHP code style issues
17+
uses: aglipanci/laravel-pint-action@v2
18+
with:
19+
testMode: true
20+
verboseMode: true
21+
pintVersion: 1.16.0

0 commit comments

Comments
 (0)