Add CI/CD pipeline with automated testing and SFTP deployment
Introduces GitHub Actions workflows for continuous integration and deployment. CI runs PHP linting (7.4, 8.1, 8.3), PHPCS with WordPress coding standards, PHPUnit tests across PHP versions, and JS syntax checks. Deployment to Hostinger via FTPS triggers on push to main after all CI checks pass, with optional LiteSpeed cache purge. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
37
composer.json
Normal file
37
composer.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "peptiderepo/peptide-news-plugin",
|
||||
"description": "WordPress plugin for peptide research news aggregation with click analytics.",
|
||||
"type": "wordpress-plugin",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"require": {
|
||||
"php": ">=7.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.6",
|
||||
"wp-phpunit/wp-phpunit": "^6.4",
|
||||
"squizlabs/php_codesniffer": "^3.9",
|
||||
"wp-coding-standards/wpcs": "^3.1",
|
||||
"phpcompatibility/phpcompatibility-wp": "^2.1",
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
|
||||
"yoast/phpunit-polyfills": "^2.0"
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"PeptideNews\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": "phpunit",
|
||||
"lint": "phpcs",
|
||||
"lint:fix": "phpcbf",
|
||||
"check": [
|
||||
"@lint",
|
||||
"@test"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user