Skip to content

Commit

Permalink
fix lint:php script
Browse files Browse the repository at this point in the history
  • Loading branch information
tschortsch committed Nov 12, 2023
1 parent 4f8768f commit c756fea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Run PHP linter
run: |
npm run wp-env start
npm run lint:php
npm run lint:php:ci
tests:
name: Tests
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@
"lint:js-fix": "wp-scripts lint-js --fix",
"lint:md-docs": "wp-scripts lint-md-docs",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"lint:php": "npm run wp-env run composer run-script lint",
"lint:php": "wp-env run --env-cwd='wp-content/plugins/wp-bootstrap-blocks' cli composer run-script lint",
"lint:php:ci": "wp-env run --env-cwd='wp-content/plugins/bootstrap-blocks-wordpress-plugin' cli composer run-script lint",
"playwright": "playwright",
"test:e2e": "wp-scripts test-playwright",
"test:e2e-interactive": "wp-scripts test-playwright --ui",
"test:unit:js": "wp-scripts test-unit-js",
"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",
"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'",
"test:unit:php": "wp-env run tests-cli phpunit -- -c /var/www/html/wp-content/plugins/wp-bootstrap-blocks/phpunit.xml.dist --verbose",
"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",
"cy:run": "cypress run",
"cy:open": "cypress open"
}
Expand Down

0 comments on commit c756fea

Please sign in to comment.