Skip to content

Commit c756fea

Browse files
committed
fix lint:php script
1 parent 4f8768f commit c756fea

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/lint-test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Run PHP linter
2828
run: |
2929
npm run wp-env start
30-
npm run lint:php
30+
npm run lint:php:ci
3131
3232
tests:
3333
name: Tests

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@
6161
"lint:js-fix": "wp-scripts lint-js --fix",
6262
"lint:md-docs": "wp-scripts lint-md-docs",
6363
"lint:pkg-json": "wp-scripts lint-pkg-json",
64-
"lint:php": "npm run wp-env run composer run-script lint",
64+
"lint:php": "wp-env run --env-cwd='wp-content/plugins/wp-bootstrap-blocks' cli composer run-script lint",
65+
"lint:php:ci": "wp-env run --env-cwd='wp-content/plugins/bootstrap-blocks-wordpress-plugin' cli composer run-script lint",
6566
"playwright": "playwright",
6667
"test:e2e": "wp-scripts test-playwright",
6768
"test:e2e-interactive": "wp-scripts test-playwright --ui",
6869
"test:unit:js": "wp-scripts test-unit-js",
69-
"test:unit:php": "npm run wp-env run tests-cli phpunit -- -c /var/www/html/wp-content/plugins/wp-bootstrap-blocks/phpunit.xml.dist --verbose",
70-
"test:unit:php:ci": "npm run wp-env run tests-cli phpunit -- '-c /var/www/html/wp-content/plugins/bootstrap-blocks-wordpress-plugin/phpunit.xml.dist --verbose'",
70+
"test:unit:php": "wp-env run tests-cli phpunit -- -c /var/www/html/wp-content/plugins/wp-bootstrap-blocks/phpunit.xml.dist --verbose",
71+
"test:unit:php:ci": "wp-env run tests-cli phpunit -- -c /var/www/html/wp-content/plugins/bootstrap-blocks-wordpress-plugin/phpunit.xml.dist --verbose",
7172
"cy:run": "cypress run",
7273
"cy:open": "cypress open"
7374
}

0 commit comments

Comments
 (0)