- Convert 17 hand-rolled tests to PHPUnit TestCases (tests: stubs pattern) P0 security tests preserved: key-leak/encryption (KeyStoreTest), capture-allowlist/executor-path sentinel (CaptureWriterTest) - Add phpunit.xml.dist + update tests/bootstrap.php (Composer autoloader first) - Add phpunit/phpunit ^9.6 + yoast/phpunit-polyfills ^2.0 to require-dev - composer test -> vendor/bin/phpunit --configuration phpunit.xml.dist - ci.yml: thin caller of peptide-e2e reusable CI (tests: stubs, has_js: true, workflow_call trigger, permissions: contents: write) - deploy.yml: estate pattern caller of peptide-e2e deploy-app.yml@main (target_path: wp-content/plugins/pr-vision, gated on reusable CI) Pull-deploy on Hostinger stays as break-glass - Add cto-review.yml (Haiku-only, A/B panel dropped 2026-06-12) - Add main-push-audit.yml (direct-push tripwire) Agent-Session: claude-adopt-ci-20260616
28 lines
594 B
YAML
28 lines
594 B
YAML
name: Deploy to WordPress
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
# contents: write required so the ci.yml caller can pass write permission
|
|
# through to the phpcbf auto-commit step in the reusable workflow.
|
|
permissions:
|
|
contents: write
|
|
|
|
concurrency:
|
|
group: deploy-pr-vision
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: Pre-deploy tests
|
|
uses: ./.github/workflows/ci.yml
|
|
|
|
deploy:
|
|
name: Deploy (shared pipeline)
|
|
needs: test
|
|
uses: peptiderepo/peptide-e2e/.github/workflows/deploy-app.yml@main
|
|
with:
|
|
target_path: wp-content/plugins/pr-vision
|
|
secrets: inherit
|