Update ci.yml

This commit is contained in:
2025-12-18 17:25:32 -06:00
parent 93c8d0693e
commit 6325e14869

View File

@@ -1,4 +1,4 @@
# # ============================================================================
# Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech> # Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
# #
# This file is part of a Moko Consulting project. # This file is part of a Moko Consulting project.
@@ -25,7 +25,8 @@
# PATH: /.github/workflows/ci.yml # PATH: /.github/workflows/ci.yml
# VERSION: 01.00.00 # VERSION: 01.00.00
# BRIEF: Continuous integration governance workflow for standards enforcement. # BRIEF: Continuous integration governance workflow for standards enforcement.
# # NOTE: Avoids wildcard branch filters on pull_request to prevent Actions parser errors.
# ============================================================================
name: CI name: CI
@@ -36,29 +37,25 @@ on:
- dev - dev
- "dev/*" - "dev/*"
pull_request: pull_request:
branches:
- "*"
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
issues: write
jobs: jobs:
ci: ci:
name: Standards CI Validation name: Standards CI Validation
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set shell strict mode - name: Validate file paths
shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
- name: Validate file paths
run: |
if [ -x "./scripts/validate_paths.sh" ]; then if [ -x "./scripts/validate_paths.sh" ]; then
./scripts/validate_paths.sh ./scripts/validate_paths.sh
else else
@@ -66,7 +63,9 @@ jobs:
fi fi
- name: Validate tabs usage - name: Validate tabs usage
shell: bash
run: | run: |
set -euo pipefail
if [ -x "./scripts/validate_tabs.sh" ]; then if [ -x "./scripts/validate_tabs.sh" ]; then
./scripts/validate_tabs.sh ./scripts/validate_tabs.sh
else else
@@ -74,7 +73,9 @@ jobs:
fi fi
- name: Validate CHANGELOG governance - name: Validate CHANGELOG governance
shell: bash
run: | run: |
set -euo pipefail
if [ -x "./scripts/validate_changelog.sh" ]; then if [ -x "./scripts/validate_changelog.sh" ]; then
./scripts/validate_changelog.sh ./scripts/validate_changelog.sh
else else
@@ -82,7 +83,9 @@ jobs:
fi fi
- name: Validate Joomla manifests - name: Validate Joomla manifests
shell: bash
run: | run: |
set -euo pipefail
if [ -x "./scripts/validate_manifest.sh" ]; then if [ -x "./scripts/validate_manifest.sh" ]; then
./scripts/validate_manifest.sh ./scripts/validate_manifest.sh
else else
@@ -90,5 +93,7 @@ jobs:
fi fi
- name: CI completion - name: CI completion
shell: bash
run: | run: |
set -euo pipefail
echo "CI checks completed successfully" echo "CI checks completed successfully"