Skip to content

Commit f7f602e

Browse files
authored
Internal: Fix Composer issue inside Github workflows [TMZ-997] (#598)
1 parent 52c688c commit f7f602e

File tree

2 files changed

+1136
-151
lines changed

2 files changed

+1136
-151
lines changed

composer.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,27 @@
66
"wp-coding-standards/wpcs": "^2.3",
77
"phpunit/phpunit": "9.5.14",
88
"elementor/elementor-editor-testing": "0.0.3",
9-
"yoast/phpunit-polyfills": "^1.0.1"
9+
"yoast/phpunit-polyfills": "^1.0.1",
10+
"thor-juhasz/phpunit-coverage-check": "^0.3.0"
1011
},
1112
"require": {
1213
"elementor/wp-notifications-package": "1.2.*"
1314
},
1415
"config": {
1516
"allow-plugins": {
1617
"dealerdirect/phpcodesniffer-composer-installer": true
18+
},
19+
"platform": {
20+
"php": "7.4.33"
1721
}
1822
},
1923
"scripts": {
2024
"lint": "phpcs --extensions=php --standard=./phpcs.xml --ignore=node_modules,vendor,assets,tmp -p .",
2125
"lint:fix": "vendor/bin/phpcbf --extensions=php --standard=./phpcs.xml --ignore=node_modules,vendor,assets,tmp .",
2226
"test": "phpunit --testsuite hello-elementor",
23-
"test:install": "bash ./bin/install-wp-tests-local.sh"
27+
"test:install": "bash ./bin/install-wp-tests-local.sh",
28+
"coverage": "composer run coverage:test && composer run coverage:check",
29+
"coverage:test": "phpdbg -qrr vendor/phpunit/phpunit/phpunit --testsuite hello-elementor --coverage-clover coverage-report/clover.xml",
30+
"coverage:check": "phpunit-coverage-check -t 20 coverage-report/clover.xml"
2431
}
25-
}
32+
}

0 commit comments

Comments
 (0)