Skip to content

Commit 36ac34e

Browse files
committed
Add Gherkin linting to Composer scripts
The updated shared workflow runs the Gherkin linter only when composer.json defines a lint-gherkin script. Without it, the job passed without checking any feature files. Also add it to the test script, as upstream wp-cli packages do.
1 parent 2d9c686 commit 36ac34e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎composer.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@
3636
"behat": "run-behat-tests",
3737
"behat-rerun": "rerun-behat-tests",
3838
"lint": "run-linter-tests",
39+
"lint-gherkin": "run-gherkin-lint-tests",
3940
"phpcs": "run-phpcs-tests",
4041
"phpcbf": "run-phpcbf-cleanup",
4142
"phpstan": "run-phpstan-tests",
4243
"phpunit": "run-php-unit-tests",
4344
"prepare-tests": "install-package-tests",
4445
"test": [
4546
"@lint",
47+
"@lint-gherkin",
4648
"@phpcs",
4749
"@phpunit",
4850
"@behat"

0 commit comments

Comments
 (0)