diff --git a/.github/workflows/php-syntax-check.yml b/.github/workflows/php-syntax-check.yml new file mode 100644 index 000000000..d31edbd99 --- /dev/null +++ b/.github/workflows/php-syntax-check.yml @@ -0,0 +1,21 @@ +name: PHP Syntax Checker + +on: + pull_request: + push: + branches: + - master + - release + +jobs: + php-lint: + name: Check PHP syntax + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Check PHP syntax + run: | + find . -name '*.php' -not -path './vendor/*' -exec php -l {} \;