Skip to content

Commit

Permalink
build: switch to Laravel Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed Mar 27, 2024
1 parent 0dd98ce commit 5441932
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 30 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.php-cs-fixer.dist.php export-ignore
/PULL_REQUEST_TEMPLATE.md export-ignore
/ISSUE_TEMPLATE.md export-ignore
/phpunit.xml.dist export-ignore
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Check code style

on: [ push, pull_request ]
on:
pull_request:
push:
paths:
- '**.php'

jobs:
php-style:
Expand All @@ -11,6 +15,6 @@ jobs:
uses: actions/checkout@v4

- name: Check style
uses: docker://oskarstark/php-cs-fixer-ga
uses: aglipanci/laravel-pint-action@v2
with:
args: -v --dry-run --using-cache=no
testMode: true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ composer.phar
composer.lock
/vendor/
/.idea/
/.php-cs-fixer.cache
/.phpunit.result.cache
/phpunit.xml
22 changes: 0 additions & 22 deletions .php-cs-fixer.dist.php

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"laravel/pint": "^1.15",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^9.5"
},
Expand All @@ -40,8 +40,8 @@
},
"scripts": {
"test": "phpunit",
"check-style": "php-cs-fixer fix --dry-run -v",
"fix-style": "php-cs-fixer fix"
"check-style": "pint --test",
"fix-style": "pint"
},
"extra": {
"branch-alias": {
Expand Down

0 comments on commit 5441932

Please sign in to comment.