Commit Graph

3 Commits

Author SHA1 Message Date
peptiderepo
5da4e0fed6 ci: adopt estate CI standard — thin caller + wp-framework PHPUnit + 300-line split
- ci.yml: thin caller → peptide-e2e reusable (tests: wp-framework, has_js: true, line_limit_paths: inc)
- deploy.yml: retire standalone validate; gate deploy on ci.yml via workflow_call
- composer.json: test script → vendor/bin/phpunit (explicit)
- inc/helpers.php: split 311→211 lines; nav walker extracted to nav-walker.php
- inc/nav-walker.php: new — Peptide_Starter_Nav_Walker + menu fallback (123 lines)
- functions.php: require nav-walker.php before helpers.php; version 2.2.2→2.3.0
- style.css: version header 2.2.2→2.3.0
- package.json / package-lock.json: minimal npm manifest for lint-js job

Agent-Session: claude/adopt-ci-20260616
2026-06-16 20:57:25 +07:00
peptiderepo
e3ab80f482 ci: standardize PHP matrix to 8.1/8.2/8.3 2026-04-26 11:55:58 +07:00
peptiderepo
80f573a94c ci: run PHPUnit in CI (tests exist, were never executed) (#2)
* ci: add PHPUnit workflow that runs the existing test suite

59 tests exist across 8 files but were never running in CI.
This adds a ci.yml with PHP Lint + PHPCS + PHPUnit against WP test
framework on a MySQL service.

Agent-Session: cowork-pr-theme-tests-20260414

* ci: vendor install-wp-tests.sh for the PHPUnit workflow

Standard WP-CLI scaffold script, lightly hardened. Kept in-repo
instead of curl-from-github so CI is reproducible.

Agent-Session: cowork-pr-theme-tests-20260414

* chore: retrigger CI after reviewer fix landed on main

Agent-Session: cowork-pr-theme-tests-20260414

* ci: install subversion before bootstrap (svn no longer preinstalled)

ubuntu-latest dropped svn from the default image. install-wp-tests.sh
still uses svn to fetch the WP test suite from develop.svn.wordpress.org.
Add a step to apt-install subversion before the bootstrap runs.

Agent-Session: cowork-pr-theme-tests-20260414

* ci: skip db creation in install-wp-tests.sh (MySQL service already created it)

Agent-Session: cowork-pr-theme-tests-20260414

* ci: WP_CORE_DIR needs trailing slash for ABSPATH substitution

The wp-tests-config.php substitution copies WP_CORE_DIR into ABSPATH
verbatim, then later WordPress concatenates wp-settings.php. Without
the trailing slash you get /tmp/wordpresswp-settings.php.

Agent-Session: cowork-pr-theme-tests-20260414
2026-04-14 17:07:14 +07:00