File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-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+ steps :
22+ - name : Checkout Code
23+ uses : actions/checkout@v4
24+ with :
25+ fetch-depth : 0
26+ repository : ${{ inputs.repository }}
27+ ref : ${{ inputs.ref }}
28+
29+ - name : Setup PHP runtime
30+ uses : shivammathur/setup-php@v2
31+ with :
32+ tools : phive
33+ php-version : ${{ inputs.php-version }}
34+ coverage : " none"
35+
36+ - name : Lint PHP files
37+ run : |
38+ phive install overtrue/phplint --force-accept-unsigned
39+ phplint --no-cache --no-progress -v
You can’t perform that action at this time.
0 commit comments