Template
chore: sync dev up to main (template CI guards + sample fixes) #43
@@ -33,7 +33,8 @@ jobs:
|
||||
run: |
|
||||
BRANCH="${{ github.event.pull_request.head.ref }}"
|
||||
API="${{ vars.GITEA_URL || 'https://git.mokoconsulting.tech' }}/api/v1/repos/${{ github.repository }}/branches"
|
||||
ENCODED=$(php -r "echo rawurlencode('${BRANCH}');")
|
||||
# URL-encode the branch name's slashes (no PHP dependency on the runner)
|
||||
ENCODED=$(printf '%s' "${BRANCH}" | sed 's|/|%2F|g')
|
||||
|
||||
STATUS=$(curl -sf -o /dev/null -w "%{http_code}" -X DELETE \
|
||||
-H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \
|
||||
|
||||
@@ -32,6 +32,8 @@ jobs:
|
||||
lint:
|
||||
name: Lint & Validate
|
||||
runs-on: ubuntu-latest
|
||||
# Skip on template repos (Template-*) — they hold placeholder scaffolding, not buildable source.
|
||||
if: ${{ !startsWith(github.event.repository.name, 'Template-') }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -130,6 +132,8 @@ jobs:
|
||||
name: Tests
|
||||
runs-on: ubuntu-latest
|
||||
needs: lint
|
||||
# Skip on template repos (Template-*) — see lint job.
|
||||
if: ${{ !startsWith(github.event.repository.name, 'Template-') }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
@@ -126,6 +126,8 @@ jobs:
|
||||
validate:
|
||||
name: Validate PR
|
||||
runs-on: ubuntu-latest
|
||||
# Skip on template repos (Template-*) — no real manifest/source/changelog to validate.
|
||||
if: ${{ !startsWith(github.event.repository.name, 'Template-') }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
@@ -28,6 +28,8 @@ jobs:
|
||||
validate-metadata:
|
||||
name: "Validate Joomla Metadata"
|
||||
runs-on: ubuntu-latest
|
||||
# Skip on template repos (Template-*) — they have no real extension manifest to validate.
|
||||
if: ${{ !startsWith(github.event.repository.name, 'Template-') }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
@@ -22,7 +22,7 @@ use Joomla\CMS\Log\Log;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
class {REPONAME}InstallerScript
|
||||
class ComponentInstallerScript
|
||||
{
|
||||
/**
|
||||
* @var string The saved download key cached during preflight to survive updates
|
||||
|
||||
@@ -22,7 +22,7 @@ use Joomla\CMS\Log\Log;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
class {REPONAME}InstallerScript
|
||||
class ModuleInstallerScript
|
||||
{
|
||||
/**
|
||||
* @var string The saved download key cached during preflight to survive updates
|
||||
|
||||
@@ -22,7 +22,7 @@ use Joomla\CMS\Log\Log;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
class {REPONAME}InstallerScript
|
||||
class PackageInstallerScript
|
||||
{
|
||||
/**
|
||||
* @var string The saved download key cached during preflight to survive updates
|
||||
|
||||
@@ -22,7 +22,7 @@ use Joomla\CMS\Log\Log;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
class {REPONAME}InstallerScript
|
||||
class PluginInstallerScript
|
||||
{
|
||||
/**
|
||||
* @var string The saved download key cached during preflight to survive updates
|
||||
|
||||
Reference in New Issue
Block a user