Skip to content

Commit

Permalink
update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alex2276564 committed Jan 9, 2025
1 parent c4a8fd2 commit 674effe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ on:
pull_request:

jobs:

php-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: PHP Syntax Check
run: |
find . -name "*.php" -print0 | xargs -0 -n1 php -l
if [ $? -ne 0 ]; then
echo "PHP syntax check failed"
exit 1
fi
lint-markdown:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 674effe

Please sign in to comment.