From bc187718b4e5433f275089e3c834b6061bb322e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 1 Jul 2025 21:38:18 +0200 Subject: [PATCH 1/3] Add syntax-check --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ff73be976..168aa8ab8 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "sniff-check": "vendor/bin/phpcs --standard=phpcs.ruleset.xml tpl/ autoload.php", "sniff-check-bk": "vendor/bin/phpcs --standard=phpcs.ruleset.xml cli/ lib/ src/ tpl/ thirdparty autoload.php litespeed-cache.php", "wpformat": "vendor/bin/phpcbf --standard=phpcs.ruleset.xml tpl/ autoload.php", - "wpformat-bk": "vendor/bin/phpcbf --standard=phpcs.ruleset.xml cli/ lib/ src/ tpl/ thirdparty autoload.php litespeed-cache.php" + "wpformat-bk": "vendor/bin/phpcbf --standard=phpcs.ruleset.xml cli/ lib/ src/ tpl/ thirdparty autoload.php litespeed-cache.php", + "syntax-check": "find tpl/ autoload.php -name '*.php' -print0|xargs -0 -L1 -- php -l", + "syntax-check-bk": "find cli/ lib/ src/ tpl/ thirdparty autoload.php litespeed-cache.php -name '*.php' -print0|xargs -0 -L1 -- php -l" }, "devDependencies": { "@prettier/plugin-php": "^0.21.0", From 6ee3ace043c3a9d1a4ef916ed609569a8a88d3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 1 Jul 2025 21:39:14 +0200 Subject: [PATCH 2/3] Update ci.yml --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bacbe87c4..43d88ad6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,9 @@ jobs: - name: Install PHPCS dependencies run: npm run install-composer-packages + - name: Run PHP syntax check + run: npm run syntax-check + - name: Run PHPCS check run: npm run sniff-check From 6cd5672f1851b9246c262b4e82d9e7c67acda3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 1 Jul 2025 21:40:18 +0200 Subject: [PATCH 3/3] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43d88ad6e..6fce58915 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: run: npm run install-composer-packages - name: Run PHP syntax check - run: npm run syntax-check + run: npm run syntax-check-bk - name: Run PHPCS check run: npm run sniff-check