Replace monolithic ci.yml with per-platform workflows so each README badge tracks one job. Scan commit messages for tool-agnostic AI attribution in CI, sync local hooks to the canon, and refresh README status plus git-discipline Rule 8.
35 lines
909 B
YAML
35 lines
909 B
YAML
name: Style and namespacing
|
|
|
|
# One workflow per concern so each README badge tracks exactly one job and is
|
|
# truthful. This job runs the repository gates (style, commit-message
|
|
# attribution, namespacing, forbidden patterns).
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
issues: read
|
|
|
|
jobs:
|
|
style:
|
|
name: Style and namespacing
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Repository gates
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
run: |
|
|
bash scripts/check-style.sh
|
|
bash scripts/check-commit-attribution.sh
|
|
bash scripts/check-namespacing.sh
|
|
bash scripts/check-forbidden-patterns.sh
|