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 28, 2024
1 parent 292affa commit dace650
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 30 deletions.
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
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ composer.lock
/vendor

# Tooling
/.php-cs-fixer.php
/.php-cs-fixer.cache
/.phpunit.result.cache
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 @@ -22,7 +22,7 @@
"laravel/framework": "^10.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"laravel/pint": "^1.15",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^9.5"
},
Expand All @@ -39,8 +39,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"
},
"config": {
"sort-packages": true
Expand Down

0 comments on commit dace650

Please sign in to comment.