Skip to content

Commit ad11a8b

Browse files
authored
ci: add automated PHP syntax linting
1 parent 8408847 commit ad11a8b

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/php-lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: PHP Syntax Check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v3
11+
12+
- name: Setup PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: '8.2'
16+
17+
- name: Check PHP Syntax
18+
run: |
19+
for file in $(find . -name "*.php"); do
20+
php -l "$file"
21+
done

0 commit comments

Comments
 (0)