From 1e4a86fb0e6b34be1ab7a453c15a28d0f4b396dd Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Thu, 31 Oct 2024 18:28:35 +0100 Subject: [PATCH] Add Castor tool setup to CI workflow Integrated the Castor tool into various jobs in the GitHub Actions workflow file. This enhances the linting process and ensures compatibility across multiple PHP versions defined in the CI configuration. Updated commands to utilize Castor for improved syntax checking. --- .github/workflows/integrate.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index 91effc2..e2bb67d 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -32,6 +32,7 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "8.3" + tools: "castor" coverage: "none" - name: "Checkout code" @@ -43,7 +44,7 @@ jobs: dependency-versions: "highest" - name: "Check source code for syntax errors" - run: "composer exec -- parallel-lint src/ tests/" + run: "castor lint" unit_tests: name: "2️⃣ Unit and functional tests" @@ -66,6 +67,7 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "${{ matrix.php-version }}" + tools: "castor" extensions: "ctype, dom, json, libxml, mbstring, openssl, phar, simplexml, tokenizer, xml, xmlwriter" coverage: "xdebug" @@ -100,6 +102,7 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "8.3" + tools: "castor" extensions: "ctype, dom, json, libxml, mbstring, openssl, phar, simplexml, tokenizer, xml, xmlwriter" coverage: "none" @@ -132,6 +135,7 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "8.3" + tools: "castor" extensions: "ctype, dom, json, libxml, mbstring, openssl, phar, simplexml, tokenizer, xml, xmlwriter" coverage: "none" @@ -161,6 +165,7 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "8.3" + tools: "castor" extensions: "ctype, dom, json, libxml, mbstring, openssl, phar, simplexml, tokenizer, xml, xmlwriter" coverage: "xdebug"