ci: skip Joomla metadata check on template repos; fix sample script PHP #41

Merged
jmiller merged 1 commits from fix/template-ci-skip into main 2026-07-04 19:27:10 +00:00
Owner

Summary

Fixes the remaining CI failures on this template repo.

Changes

  • pr-metadata-check.yml: guard the validate-metadata job with !startsWith(github.event.repository.name, 'Template-'). A template has no real extension manifest, so joomla_metadata_validate (No Joomla extension manifest XML found) can't pass by design.
  • samples/script/*.php: give each installer script a valid class name (ComponentInstallerScript, ModuleInstallerScript, PluginInstallerScript, PackageInstallerScript) instead of the invalid class {REPONAME}InstallerScript placeholder, so the files pass php -l. This matters for repos generated from this template that keep samples/ — their (non-template) CI would otherwise lint these and fail. String/comment placeholders remain for find-replace.

Related

Companion to Template-Generic#48 which guards the generic ci-generic/pr-check/branch-cleanup workflows.

Authored-by: Moko Consulting

## Summary Fixes the remaining CI failures on this template repo. ## Changes - **`pr-metadata-check.yml`**: guard the `validate-metadata` job with `!startsWith(github.event.repository.name, 'Template-')`. A template has no real extension manifest, so `joomla_metadata_validate` (`No Joomla extension manifest XML found`) can't pass by design. - **`samples/script/*.php`**: give each installer script a valid class name (`ComponentInstallerScript`, `ModuleInstallerScript`, `PluginInstallerScript`, `PackageInstallerScript`) instead of the invalid `class {REPONAME}InstallerScript` placeholder, so the files pass `php -l`. **This matters for repos generated from this template that keep `samples/`** — their (non-template) CI would otherwise lint these and fail. String/comment placeholders remain for find-replace. ## Related Companion to [Template-Generic#48](https://git.mokoconsulting.tech/MokoConsulting/Template-Generic/pulls/48) which guards the generic `ci-generic`/`pr-check`/`branch-cleanup` workflows. Authored-by: Moko Consulting
jmiller added 1 commit 2026-07-04 19:26:47 +00:00
ci: skip Joomla metadata check on template repos; fix sample script PHP
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Has been skipped
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Has been skipped
Universal: PR Check / Branch Policy (pull_request) Failing after 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 1s
Universal: PR Check / Validate PR (pull_request) Failing after 5s
Universal: PR Check / Secret Scan (pull_request) Successful in 5s
Generic: Project CI / Lint & Validate (pull_request) Successful in 21s
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Has been skipped
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Successful in 9s
Generic: Project CI / Tests (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report: Scripts Governance (pull_request) Has been cancelled
Generic: Repo Health / Report: Repository Health (pull_request) Has been cancelled
e498b22b66
- pr-metadata-check.yml: guard the validate-metadata job with
  !startsWith(github.event.repository.name, 'Template-'). Template repos
  have no real extension manifest, so the check cannot pass by design.
- samples/script/*.php: give each installer script a valid class name
  (ComponentInstallerScript, ModuleInstallerScript, PluginInstallerScript,
  PackageInstallerScript) instead of the invalid `class {REPONAME}...`
  placeholder, so the files pass `php -l`. This matters for repos generated
  from this template that keep samples/. String/comment placeholders remain
  for find-replace.

Authored-by: Moko Consulting
jmiller merged commit 7ad8efe281 into main 2026-07-04 19:27:10 +00:00
jmiller deleted branch fix/template-ci-skip 2026-07-04 19:27:11 +00:00
Sign in to join this conversation.
No Reviewers
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/Template-Joomla#41