- 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
26 lines
689 B
YAML
26 lines
689 B
YAML
name: Deploy Theme to Hostinger
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: deploy-peptide-starter-theme
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
# Gate deploy on the reusable CI (lint-php, phpcs, phpunit, file-size, lint-js).
|
|
# ci.yml exposes workflow_call so it can be used here without re-running a
|
|
# separate workflow — the call result satisfies the branch-protection context
|
|
# "ci / ci (lint-php (8.1))" etc.
|
|
ci:
|
|
uses: ./.github/workflows/ci.yml
|
|
|
|
deploy:
|
|
name: Deploy (shared pipeline)
|
|
needs: ci
|
|
uses: peptiderepo/peptide-e2e/.github/workflows/deploy-app.yml@main
|
|
with:
|
|
target_path: wp-content/themes/peptide-starter
|
|
secrets: inherit
|