From e4bf3088a474368b6c5bf83d47d1e78fce1322f6 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 1 Aug 2024 09:36:53 +0200 Subject: [PATCH] Check PHP syntax (#19) --- .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: