From d086c91ff16aabc69bcca21f5fdfc4a82689f3aa Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 31 Jul 2024 15:26:10 +0200 Subject: [PATCH] Check PHP syntax --- .github/workflows/tests.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 43421a2..29c671d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,7 +9,31 @@ on: - main jobs: - phpcs: + + php-syntax: + name: PHP Syntax + runs-on: ubuntu-latest + steps: + - + name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + # This should be the value of the minimum PHP version as specified in composer.json + php-version: 5.3 + extensions: opcache + coverage: none + tools: none + - + name: Checkout + uses: actions/checkout@v4 + - + name: Check syntax + uses: mlocati/check-php-syntax@main + with: + exclude: | + .php-cs-fixer.php + + php-cs: name: PHP Coding Style runs-on: ubuntu-latest steps: