File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : ' PHPLint'
4+ description : ' Run PHP linter'
5+
6+ inputs :
7+ php-version :
8+ description : ' The PHP-version to use for linting'
9+ required : true
10+ repository :
11+ description : ' The repository that needs linting'
12+ required : true
13+ ref :
14+ description : ' The branch, tag or SHA that needs linting'
15+ required : false
16+ default : ' master'
17+
18+ runs :
19+ using : ' composite'
20+ steps :
21+ - name : Checkout Code
22+ uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+ repository : ${{ inputs.repository }}
26+ ref : ${{ inputs.ref }}
27+
28+ - name : Setup PHP runtime
29+ uses : shivammathur/setup-php@v2
30+ with :
31+ tools : phive
32+ php-version : ${{ inputs.php-version }}
33+ coverage : " none"
34+
35+ - name : Lint PHP files
36+ run : |
37+ phive install overtrue/phplint --force-accept-unsigned
38+ phplint --no-cache --no-progress -v
You can’t perform that action at this time.
0 commit comments