diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index bffc37a..d040e7e 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,9 +2,9 @@ name: build on: push: - branches: [ "master" ] + branches: [ "main" ] pull_request: - branches: [ "master" ] + branches: [ "main" ] permissions: contents: read @@ -17,6 +17,9 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Run Syntax Checker + run: find . -type f -name '*.php' -print -exec php -l {} \; + - name: Install dependencies run: composer update --lock