Files
peptide-starter-theme/.github/workflows/ci.yml
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

25 lines
648 B
YAML

name: CI
# Thin caller — delegates all jobs to the shared reusable workflow.
# Must include workflow_call so deploy.yml can gate on this workflow.
on:
pull_request: {}
push:
branches: [main]
workflow_call: {}
# Required by the reusable phpcs job which commits phpcbf auto-fixes back
# to the PR branch. GitHub enforces that callers declare at least the same
# permissions as any job-level override in the called workflow.
permissions:
contents: write
jobs:
ci:
uses: peptiderepo/peptide-e2e/.github/workflows/ci.yml@main
with:
tests: wp-framework
has_js: true
line_limit_paths: inc
secrets: inherit