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+ {
2+ "problemMatcher" : [
3+ {
4+ "owner" : " phplint-matcher" ,
5+ "pattern" : [
6+ {
7+ "regexp" : " ^(.+):\\ s+\\ s+(.+) in (.+) on line (\\ d+)$" ,
8+ "code" : 1 ,
9+ "message" : 2 ,
10+ "file" : 3 ,
11+ "line" : 4
12+ }
13+ ]
14+ }
15+ ]
16+ }
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ name: PHP Syntax Check
22
33on :
44 push :
5- branches : [ smf21, master ]
65 pull_request :
76 branches : [ smf21, master ]
87
1918 - uses : actions/checkout@master
2019 with :
2120 submodules : false
21+ - name : Add PHP lint matcher
22+ run : echo "::add-matcher::.github/phplint-matcher.json"
2223 - name : Setup PHP
2324 id : SetupPHP
2425 uses : nanasess/setup-php@master
2526 with :
2627 php-version : ${{ matrix.php }}
27- - run : php ./.github/scripts/check-php-syntax.php ./
28+ - name : Lint PHP files
29+ run : |
30+ shopt -s globstar
31+ for f in **/*.php; do
32+ php -l "$f"
33+ done
You can’t perform that action at this time.
0 commit comments