mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2026-08-06 13:10:27 +08:00
Let CI matrix jobs resolve dependencies against their actual PHP version instead of all using a hard-coded 8.0 floor. The PHP 8.0 matrix cell now acts as the canary for minimum-version compatibility. Pin the release workflow to PHP 8.0 and set platform.php explicitly via composer config so the distributed vendor/ remains 8.0-compatible. Signed-off-by: Chuck Adams <chaz@chaz.works>
99 lines
3.5 KiB
JSON
99 lines
3.5 KiB
JSON
{
|
|
"name": "fairpm/fair-plugin",
|
|
"description": "Make your site more FAIR.",
|
|
"type": "wordpress-plugin",
|
|
"license": "gpl-2.0-only",
|
|
"authors": [
|
|
{
|
|
"name": "FAIR Contributors",
|
|
"email": "operations@fair.pm",
|
|
"homepage": "https://fair.pm"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=8.0",
|
|
"fairpm/did-manager-wordpress": "0.0.4-a"
|
|
},
|
|
"require-dev": {
|
|
"yoast/phpunit-polyfills": "*",
|
|
"nimut/phpunit-merger": "*",
|
|
"humanmade/coding-standards": "^1.2",
|
|
"szepeviktor/phpstan-wordpress": "^2.0"
|
|
},
|
|
"config": {
|
|
"allow-plugins": {
|
|
"dealerdirect/phpcodesniffer-composer-installer": true
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"FAIR\\Tests\\": "tests/"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"lint:phpcs": "phpcs -d error_reporting='E_ALL & ~E_DEPRECATED' . --warning-severity=0",
|
|
"lint:phpstan": "phpstan analyse --verbose --memory-limit=2G",
|
|
"lint": [
|
|
"@lint:phpcs",
|
|
"@lint:phpstan"
|
|
],
|
|
"format:phpcs": "phpcbf .",
|
|
"format:phpstan": "phpstan analyse --fix --memory-limit=2G",
|
|
"format": [
|
|
"@format:phpcs",
|
|
"@format:phpstan"
|
|
],
|
|
"phpstan-baseline": "phpstan analyse --generate-baseline=tests/phpstan-baseline.neon --memory-limit=2G",
|
|
"test:generate-keys": "@php tests/fixtures/keys/generate.php",
|
|
"test:setup": [
|
|
"Composer\\Config::disableProcessTimeout",
|
|
"@test:generate-keys",
|
|
"@php bin/setup-local-tests.php"
|
|
],
|
|
"test:unit": [
|
|
"@test:setup",
|
|
"@php ./vendor/phpunit/phpunit/phpunit -c tests/unit/phpunit.xml"
|
|
],
|
|
"test:unit:multisite": [
|
|
"@test:setup",
|
|
"@php ./vendor/phpunit/phpunit/phpunit -c tests/unit/multisite.xml"
|
|
],
|
|
"coverage:merge": [
|
|
"Composer\\Config::disableProcessTimeout",
|
|
"@putenv XDEBUG_MODE=coverage",
|
|
"@php ./vendor/bin/phpunit-merger coverage tests/unit/coverage/php --html tests/unit/coverage/html/full tests/unit/cache/full-cache.xml"
|
|
],
|
|
"coverage:single": [
|
|
"@test:setup",
|
|
"@putenv XDEBUG_MODE=coverage",
|
|
"@php ./vendor/phpunit/phpunit/phpunit -c tests/unit/phpunit.xml --coverage-php=tests/unit/coverage/php/single.cov"
|
|
],
|
|
"coverage:multisite": [
|
|
"@test:setup",
|
|
"@putenv XDEBUG_MODE=coverage",
|
|
"@php ./vendor/phpunit/phpunit/phpunit -c tests/unit/multisite.xml --coverage-php=tests/unit/coverage/php/multi.cov"
|
|
],
|
|
"coverage:full": [
|
|
"@coverage:single",
|
|
"@coverage:multisite",
|
|
"@coverage:merge"
|
|
],
|
|
"infection": "docker compose -f tests/sites/mutation/docker-compose.yml run --rm mutation",
|
|
"test:integration": "bin/run-integration.sh integration",
|
|
"test:http": "bin/run-integration.sh http",
|
|
"test:browser": "cd tests/browser && npm run test",
|
|
"test:browser:headed": "cd tests/browser && npm run test:headed",
|
|
"test:e2e": "@test:browser",
|
|
"test:all": [
|
|
"@test:unit",
|
|
"@test:unit:multisite",
|
|
"@test:integration",
|
|
"@test:http"
|
|
]
|
|
},
|
|
"support": {
|
|
"issues": "https://github.com/fairpm/fair-plugin/issues",
|
|
"source": "https://github.com/fairpm/fair-plugin",
|
|
"docs": "https://github.com/fairpm/fair-plugin/blob/main/README.md"
|
|
}
|
|
}
|