Update ci.yml
This commit is contained in:
117
.github/workflows/ci.yml
vendored
117
.github/workflows/ci.yml
vendored
@@ -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,70 +25,75 @@
|
|||||||
# 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
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 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:
|
steps:
|
||||||
contents: read
|
- name: Checkout repository
|
||||||
issues: write
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
steps:
|
- name: Validate file paths
|
||||||
- name: Checkout repository
|
shell: bash
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ -x "./scripts/validate_paths.sh" ]; then
|
||||||
|
./scripts/validate_paths.sh
|
||||||
|
else
|
||||||
|
echo "validate_paths.sh not present, skipping"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Set shell strict mode
|
- name: Validate tabs usage
|
||||||
run: |
|
shell: bash
|
||||||
set -euo pipefail
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ -x "./scripts/validate_tabs.sh" ]; then
|
||||||
|
./scripts/validate_tabs.sh
|
||||||
|
else
|
||||||
|
echo "validate_tabs.sh not present, skipping"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Validate file paths
|
- name: Validate CHANGELOG governance
|
||||||
run: |
|
shell: bash
|
||||||
if [ -x "./scripts/validate_paths.sh" ]; then
|
run: |
|
||||||
./scripts/validate_paths.sh
|
set -euo pipefail
|
||||||
else
|
if [ -x "./scripts/validate_changelog.sh" ]; then
|
||||||
echo "validate_paths.sh not present, skipping"
|
./scripts/validate_changelog.sh
|
||||||
fi
|
else
|
||||||
|
echo "validate_changelog.sh not present, skipping"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Validate tabs usage
|
- name: Validate Joomla manifests
|
||||||
run: |
|
shell: bash
|
||||||
if [ -x "./scripts/validate_tabs.sh" ]; then
|
run: |
|
||||||
./scripts/validate_tabs.sh
|
set -euo pipefail
|
||||||
else
|
if [ -x "./scripts/validate_manifest.sh" ]; then
|
||||||
echo "validate_tabs.sh not present, skipping"
|
./scripts/validate_manifest.sh
|
||||||
fi
|
else
|
||||||
|
echo "validate_manifest.sh not present, skipping"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Validate CHANGELOG governance
|
- name: CI completion
|
||||||
run: |
|
shell: bash
|
||||||
if [ -x "./scripts/validate_changelog.sh" ]; then
|
run: |
|
||||||
./scripts/validate_changelog.sh
|
set -euo pipefail
|
||||||
else
|
echo "CI checks completed successfully"
|
||||||
echo "validate_changelog.sh not present, skipping"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Validate Joomla manifests
|
|
||||||
run: |
|
|
||||||
if [ -x "./scripts/validate_manifest.sh" ]; then
|
|
||||||
./scripts/validate_manifest.sh
|
|
||||||
else
|
|
||||||
echo "validate_manifest.sh not present, skipping"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: CI completion
|
|
||||||
run: |
|
|
||||||
echo "CI checks completed successfully"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user