From 1fb7e6d19e4ae3a5485d288da5fb68bab4fd842e Mon Sep 17 00:00:00 2001 From: Craig Knudsen Date: Mon, 27 Nov 2023 14:05:31 -0500 Subject: [PATCH] Added PHP syntax github workflow --- .github/workflows/php-syntax-check.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/php-syntax-check.yml 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 {} \;