diff --git a/.mokogitea/workflows/ci-platform.yml b/.mokogitea/workflows/ci-platform.yml index 79b5a4a..2d274ea 100644 --- a/.mokogitea/workflows/ci-platform.yml +++ b/.mokogitea/workflows/ci-platform.yml @@ -6,7 +6,7 @@ # DEFGROUP: Gitea.Workflow # INGROUP: moko-platform.CI # REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform -# PATH: /.gitea/workflows/ci-platform.yml +# PATH: /.mokogitea/workflows/ci-platform.yml # VERSION: 09.23.00 # BRIEF: moko-platform CI — the standards engine validates itself # @@ -41,7 +41,7 @@ on: paths-ignore: - '**.md' - 'wiki/**' - - '.gitea/ISSUE_TEMPLATE/**' + - '.mokogitea/ISSUE_TEMPLATE/**' pull_request: branches: - main @@ -104,7 +104,7 @@ jobs: echo "::error file=${file}::PHP syntax error" ERRORS=$((ERRORS + 1)) fi - done < <(find lib/ validate/ automation/ cli/ src/ deploy/ -name "*.php" -print0 2>/dev/null) + done < <(find lib/ validate/ automation/ cli/ source/ src/ deploy/ -name "*.php" -print0 2>/dev/null) { echo "### PHP Syntax" @@ -270,7 +270,7 @@ jobs: echo "::warning file=${file}::Missing SPDX header" MISSING=$((MISSING + 1)) fi - done < <(find lib/ validate/ cli/ src/ automation/ deploy/ -name "*.php" -print0 2>/dev/null) + done < <(find lib/ validate/ cli/ source/ src/ automation/ deploy/ -name "*.php" -print0 2>/dev/null) { echo "### License Headers" @@ -289,7 +289,7 @@ jobs: echo "::error file=${file}::Potential hardcoded secret detected" FOUND=$((FOUND + 1)) fi - done < <(find lib/ validate/ cli/ src/ automation/ deploy/ -name "*.php" -print0 2>/dev/null) + done < <(find lib/ validate/ cli/ source/ src/ automation/ deploy/ -name "*.php" -print0 2>/dev/null) { echo "### Secret Detection" diff --git a/.mokogitea/workflows/cleanup.yml b/.mokogitea/workflows/cleanup.yml index 70521b3..91faae4 100644 --- a/.mokogitea/workflows/cleanup.yml +++ b/.mokogitea/workflows/cleanup.yml @@ -6,7 +6,7 @@ # DEFGROUP: Gitea.Workflow # INGROUP: moko-platform.Maintenance # REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform -# PATH: /.gitea/workflows/cleanup.yml +# PATH: /.mokogitea/workflows/cleanup.yml # VERSION: 09.23.00 # BRIEF: Scheduled cleanup — delete merged branches and old workflow runs diff --git a/.mokogitea/workflows/notify.yml b/.mokogitea/workflows/notify.yml index c18b809..fd369f0 100644 --- a/.mokogitea/workflows/notify.yml +++ b/.mokogitea/workflows/notify.yml @@ -6,7 +6,7 @@ # DEFGROUP: Gitea.Workflow # INGROUP: moko-platform.Notifications # REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform -# PATH: /.gitea/workflows/notify.yml +# PATH: /.mokogitea/workflows/notify.yml # VERSION: 09.23.00 # BRIEF: Push notifications via ntfy on release success or workflow failure diff --git a/.mokogitea/workflows/pr-check.yml b/.mokogitea/workflows/pr-check.yml index 4d78d7a..828f821 100644 --- a/.mokogitea/workflows/pr-check.yml +++ b/.mokogitea/workflows/pr-check.yml @@ -172,7 +172,8 @@ jobs: if: steps.platform.outputs.platform == 'joomla' run: | MISSING=0 - SOURCE_DIR="src" + SOURCE_DIR="source" + [ ! -d "$SOURCE_DIR" ] && SOURCE_DIR="src" [ ! -d "$SOURCE_DIR" ] && exit 0 while IFS= read -r dir; do if [ ! -f "${dir}/index.html" ]; then @@ -220,7 +221,7 @@ jobs: echo "joomla.asset.json: valid" fi - # Validate all XML files in src/ are well-formed + # Validate all XML files in source/src/ are well-formed XML_ERRORS=0 if command -v php &> /dev/null; then while IFS= read -r -d '' xmlfile; do @@ -451,10 +452,11 @@ jobs: - name: Verify package source run: | - SOURCE_DIR="src" + SOURCE_DIR="source" + [ ! -d "$SOURCE_DIR" ] && SOURCE_DIR="src" [ ! -d "$SOURCE_DIR" ] && SOURCE_DIR="htdocs" if [ ! -d "$SOURCE_DIR" ]; then - echo "::warning::No src/ or htdocs/ directory" + echo "::warning::No source/, src/, or htdocs/ directory" exit 0 fi FILE_COUNT=$(find "$SOURCE_DIR" -type f | wc -l) diff --git a/.mokogitea/workflows/repo-health.yml b/.mokogitea/workflows/repo-health.yml index 8d57aaf..6b8dfd9 100644 --- a/.mokogitea/workflows/repo-health.yml +++ b/.mokogitea/workflows/repo-health.yml @@ -296,17 +296,19 @@ jobs: missing_required=() missing_optional=() - # Source directory: src/ or htdocs/ (either is valid for extension repos) + # Source directory: source/, src/, or htdocs/ (any is valid for extension repos) SOURCE_DIR="" - if [ -d "src" ]; then + if [ -d "source" ]; then + SOURCE_DIR="source" + elif [ -d "src" ]; then SOURCE_DIR="src" elif [ -d "htdocs" ]; then SOURCE_DIR="htdocs" elif [ -d "deploy" ] || [ -d "cli" ] || [ -d "monitoring" ]; then - # Platform/tooling repos don't need src/ + # Platform/tooling repos don't need source/ SOURCE_DIR="" else - missing_required+=("src/ or htdocs/ (source directory required)") + missing_required+=("source/ or src/ or htdocs/ (source directory required)") fi for item in "${required_artifacts[@]}"; do diff --git a/.mokogitea/workflows/security-audit.yml b/.mokogitea/workflows/security-audit.yml index 1bd9470..2a2c8b4 100644 --- a/.mokogitea/workflows/security-audit.yml +++ b/.mokogitea/workflows/security-audit.yml @@ -6,7 +6,7 @@ # DEFGROUP: Gitea.Workflow # INGROUP: moko-platform.Security # REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform -# PATH: /.gitea/workflows/security-audit.yml +# PATH: /.mokogitea/workflows/security-audit.yml # VERSION: 09.23.00 # BRIEF: Dependency vulnerability scanning for composer and npm packages