Skip to content

Commit 89d153b

Browse files
committed
switch to laravel pint
1 parent f5fb505 commit 89d153b

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/php-cs-fixer.yml renamed to .github/workflows/fix-php-code-style-issues.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
name: Check & fix styling
1+
name: Fix PHP code style issues
22

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
47

58
jobs:
6-
php-cs-fixer:
9+
php-code-styling:
710
runs-on: ubuntu-latest
811

912
steps:
1013
- name: Checkout code
11-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1215
with:
1316
ref: ${{ github.head_ref }}
1417

15-
- name: Run PHP CS Fixer
16-
uses: docker://oskarstark/php-cs-fixer-ga
17-
with:
18-
args: --config=.php-cs-fixer.dist.php --allow-risky=yes
18+
- name: Fix PHP code style issues
19+
uses: aglipanci/[email protected]
1920

2021
- name: Commit changes
2122
uses: stefanzweifel/git-auto-commit-action@v4

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"php": "^8.0"
1919
},
2020
"require-dev": {
21-
"friendsofphp/php-cs-fixer": "^3.0",
21+
"laravel/pint": "^1.2",
2222
"pestphp/pest": "^1.20",
2323
"spatie/ray": "^1.28"
2424
},
@@ -35,7 +35,7 @@
3535
"scripts": {
3636
"test": "vendor/bin/pest",
3737
"test-coverage": "vendor/bin/pest --coverage",
38-
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
38+
"format": "vendor/bin/pint"
3939
},
4040
"config": {
4141
"sort-packages": true

0 commit comments

Comments
 (0)