File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : fix-style
1+ name : Fix Style
22
33on :
44 push :
5- paths :
6- - ' **.php '
5+ branches :
6+ - master
77 workflow_dispatch :
88
99permissions :
1010 contents : write
1111
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.ref }}
14+ cancel-in-progress : true
15+
1216jobs :
13- php-code-styling :
17+ fix-style :
18+ name : Fix Style
1419 runs-on : ubuntu-latest
15- timeout-minutes : 5
20+ timeout-minutes : 10
1621
1722 steps :
18- - name : Checkout code
23+ - name : Checkout
1924 uses : actions/checkout@v4
2025 with :
21- ref : ${{ github.head_ref }}
26+ token : ${{ secrets.GITHUB_TOKEN }}
27+
28+ - name : Setup PHP
29+ uses : shivammathur/setup-php@v2
30+ with :
31+ php-version : ' 8.4'
32+ tools : composer:v2
33+ coverage : none
34+
35+ - name : Validate composer files
36+ run : composer validate --strict --no-check-publish
37+
38+ - name : Install dependencies
39+ run : composer install --prefer-dist --no-interaction --no-progress
2240
23- - name : Fix PHP code style issues
24- uses : aglipanci/laravel- pint-action@2.5
41+ - name : Run Pint
42+ run : ./vendor/bin/ pint
2543
26- - name : Commit changes
27- uses : stefanzweifel/git-auto-commit-action@v5
44+ - name : Commit style fixes
45+ uses : stefanzweifel/git-auto-commit-action@v6
2846 with :
29- commit_message : Fix styling
47+ commit_message : Fix code style
You can’t perform that action at this time.
0 commit comments