Template
ci: skip Joomla metadata check on template repos; fix sample script PHP #41
Reference in New Issue
Block a user
Delete Branch "fix/template-ci-skip"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the remaining CI failures on this template repo.
Changes
pr-metadata-check.yml: guard thevalidate-metadatajob with!startsWith(github.event.repository.name, 'Template-'). A template has no real extension manifest, sojoomla_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 invalidclass {REPONAME}InstallerScriptplaceholder, so the files passphp -l. This matters for repos generated from this template that keepsamples/— 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-cleanupworkflows.Authored-by: Moko Consulting
- 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