Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/phplint-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "phplint-matcher",
"pattern": [
{
"regexp": "^(.+):\\s+\\s+(.+) in (.+) on line (\\d+)$",
"code": 1,
"message": 2,
"file": 3,
"line": 4
}
]
}
]
}
9 changes: 8 additions & 1 deletion .github/workflows/Syntax-Check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@ jobs:
- uses: actions/checkout@master
with:
submodules: false
- name: Add PHP lint matcher
run: echo "::add-matcher::.github/phplint-matcher.json"
- name: Setup PHP
id: SetupPHP
uses: nanasess/setup-php@master
with:
php-version: ${{ matrix.php }}
- run: php ./.github/scripts/check-php-syntax.php ./
- name: Lint PHP files
run: |
shopt -s globstar
for f in **/*.php; do
php -l "$f"
done
Loading