feat: implement Phase 2 Automation & CI (validate_skills, generate_index, ci.yml) [skip ci]

This commit is contained in:
sck_0
2026-01-25 19:19:51 +01:00
parent 1557826c5d
commit 4fe8a1e6a4
4 changed files with 1210 additions and 324 deletions

34
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Skills Registry CI
on:
push:
branches: ["main", "feat/*"]
pull_request:
branches: ["main"]
jobs:
validate-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: 🔍 Validate Skills (Strict Mode)
run: |
python3 scripts/validate_skills.py --strict
- name: 🏗️ Generate Index
run: |
python3 scripts/generate_index.py
- name: 📝 Update README
run: |
python3 scripts/update_readme.py
- name: 🚨 Check for Uncommitted Drift
run: |
git diff --exit-code || (echo "❌ Detected uncommitted changes in README.md or skills_index.json. Please run scripts locally and commit." && exit 1)