This repository was archived by the owner on Mar 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +49
-7
lines changed
Expand file tree Collapse file tree 3 files changed +49
-7
lines changed Original file line number Diff line number Diff line change 1+ name : PHP Linting (Pint)
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches-ignore :
7+ - ' dependabot/npm_and_yarn/*'
8+
9+ jobs :
10+ phplint :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+ with :
17+ fetch-depth : 2
18+
19+ - name : Laravel pint
20+ uses : aglipanci/laravel-pint-action@0.1.0
21+ with :
22+ preset : laravel
23+
24+ - name : Extract branch name
25+ shell : bash
26+ run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
27+ id : extract_branch
28+
29+ - name : Commit Changes
30+ uses : stefanzweifel/git-auto-commit-action@v4
31+ with :
32+ commit_message : PHP Linting (Pint)
33+ branch : ${{ steps.extract_branch.outputs.branch }}
34+ skip_fetch : true
Original file line number Diff line number Diff line change 2828 },
2929 "require-dev" : {
3030 "blade-ui-kit/blade-heroicons" : " ^2.0" ,
31- "friendsofphp/php-cs-fixer " : " ^3.0 " ,
31+ "laravel/pint " : " ^1.2 " ,
3232 "livewire/livewire" : " ^2.8" ,
3333 "orchestra/testbench" : " ^6.23|^7.0" ,
3434 "phpunit/phpunit" : " ^9.5" ,
35- "spatie/laravel-ray" : " ^1.25" ,
36- "spatie/phpunit-snapshot-assertions" : " ^4.2" ,
37- "vimeo/psalm" : " ^4.8"
35+ "spatie/laravel-ray" : " ^1.25"
3836 },
3937 "suggest" : {
4038 "blade-ui-kit/blade-heroicons" : " Required for the default icons used in this package" ,
5149 }
5250 },
5351 "scripts" : {
54- "psalm" : " vendor/bin/psalm" ,
5552 "test" : " vendor/bin/phpunit" ,
56- "test-coverage" : " vendor/bin/phpunit --coverage-html coverage" ,
57- "format" : " vendor/bin/php-cs-fixer fix --allow-risky=yes"
53+ "format" : " vendor/bin/pint"
5854 },
5955 "config" : {
6056 "sort-packages" : true
Original file line number Diff line number Diff line change 1+ {
2+ "preset" : " laravel" ,
3+ "rules" : {
4+ "concat_space" : {
5+ "spacing" : " one"
6+ },
7+ "types_spaces" : {
8+ "space" : " none"
9+ },
10+ "single_trait_insert_per_statement" : true
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments