peptiderepo
49934b2c25
feat(ci): adopt estate CI + add PHPUnit suite from scratch (v1.2.0)
...
- Add PHPUnit 9.6 test suite (WP stubs, tests: stubs) — 40 tests across 4 files:
MathTest: 25 tests covering all PRC_Math public methods and calculate()
orchestrator with real peptide scenarios (BPC-157/TB-500/Semaglutide/MK-677/
Ipamorelin) plus edge cases (zero water, negative inputs, floor rounding,
rounding precision, mcg↔mg conversion).
DefaultPresetsTest: 11 tests — all 8 expected slugs, required keys per preset
(dataProvider), dose_unit validity, min<max range, source field, spot-checks.
RestControllerTest: 7 tests — calculate() 200 + correct values (mcg+mg),
get_presets() 200, get_preset() 200 for known slug / WP_Error for unknown.
PresetProviderTest: 4 tests — fallback to defaults sans PR Core, slug key
present, cache invalidation, idempotent invalidation.
- Add phpunit.xml.dist + tests/bootstrap.php (WP function/class stubs).
- Add composer test script: vendor/bin/phpunit --configuration phpunit.xml.dist.
- Add phpunit/phpunit ^9.6 + yoast/phpunit-polyfills ^2.0 to require-dev.
- Replace standalone ci.yml with thin caller to estate reusable workflow:
uses: peptiderepo/peptide-e2e/.github/workflows/ci.yml@main
with: tests: stubs, has_js: true
permissions: contents: write (required for phpcbf commit-back)
workflow_call (required for deploy.yml gate).
- deploy.yml unchanged — already gates on ./ci.yml + uses shared deploy-app.yml.
- Version bump 1.1.0 → 1.2.0.
Agent-Session: claude/adopt-ci-20260616
2026-06-16 15:16:48 +00:00
peptiderepo
99b66c6370
ci(review): drop multi-model panel to Haiku-only ( #7 )
...
QA A/B decision 2026-06-12 (CEO-ratified): Haiku-only. Evidence: convo/cto/threads/2026-06-qa-ab-review/. QA verdict per repo in qa-reviews/.
Agent-Session: cto-panel-merge-20260612
2026-06-12 21:53:45 +07:00
peptiderepo
1f4a16d6c5
ci: adopt shared reusable deploy workflow ( #6 )
...
Replaces the repo-local staging/smoke/production jobs with a single call to
peptiderepo/peptide-e2e/.github/workflows/deploy-app.yml. Deploy logic is now
centralized; this repo just passes its target_path. Pilot for the rollout.
Agent-Session: cto adopt-reusable-deploy
Co-authored-by: peptiderepo <peptiderepo@users.noreply.github.com >
2026-06-09 14:04:28 +07:00
peptiderepo
0feb36c428
ci(audit): retry PR-association check ( #5 )
...
listPullRequestsAssociatedWithCommit is eventually-consistent after a squash
merge; the single immediate call intermittently flagged legit merges as
'direct push to main'. Now polls up to 5x/10s before opening an issue.
Agent-Session: cto audit-race-fix
2026-06-09 13:39:20 +07:00
peptiderepo
3f7838fa0f
ci: restore deploy pipeline ( #4 )
...
Same 0-job-failure fix as prautoblogger #147 / prcore #14 .
Agent-Session: cto restore-deploy-org-sweep
2026-06-09 13:27:14 +07:00
peptiderepo
fcf840e82f
ci: make smoke gate informational ( #3 )
...
Smoke runs but does not block prod promotion until triage completes.
Agent-Session: cto batch-merge-smoke-informational
2026-05-14 21:01:05 +07:00
peptiderepo
f2c989772b
ci: add deploy summary step
2026-04-26 11:56:14 +07:00
peptiderepo
334aeb3966
ci: add main-push-audit tripwire
2026-04-26 11:56:12 +07:00
peptiderepo
7a75dd0b58
ci: add CTO review workflow
2026-04-26 11:56:10 +07:00
peptiderepo
bea698813f
ci: add Playwright smoke gate before prod deploy
2026-04-26 11:41:18 +07:00
peptiderepo
25b81bdf1b
ci: split deploy.yml into staging→production pipeline with approval gate
2026-04-24 13:11:25 +07:00
peptiderepo
c35ed73616
ci: add workflow_call trigger so deploy.yml can reuse CI
...
The deploy workflow references ci.yml as a reusable workflow
via `uses: ./.github/workflows/ci.yml`. Without workflow_call
in the trigger list, GitHub Actions rejects the reference.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-17 17:16:39 +07:00
peptiderepo
817c3d1fb9
ci: add deploy-to-Hostinger workflow
...
Rsync over SSH on push to main. Runs CI first, then syncs
production files to wp-content/plugins/peptide-reconstitution-calculator/
on Hostinger. Includes LiteSpeed cache purge and health check.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-17 17:14:31 +07:00
peptiderepo
9aa5309eb4
feat: ship Peptide Reconstitution Calculator v1.0.0
...
Interactive reconstitution calculator with peptide-specific presets.
Core features:
- [prc_calculator] shortcode with instant client-side math
- Concentration (mg/mL), mcg/unit, injection volume, syringe units, doses/vial
- Live presets from PR Core dosing data (graceful fallback to 8 defaults)
- REST API (prc/v1): presets list/detail + server-side calculate
- Transient-cached presets with event-driven invalidation
- Dark mode + responsive design (320px+)
- Full teardown in uninstall.php
12 PHP files (max 241 lines), 1 JS file, 1 CSS file.
CI: PHP lint 8.1-8.3, PHPCS WordPress, 300-line check.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-17 14:23:59 +07:00