Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-bk

- name: Run PHPCS check
run: npm run sniff-check

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading