|
| 1 | +name: Validate |
| 2 | + |
| 3 | +# The skills in this repository are markdown: nothing compiles and no test suite |
| 4 | +# runs, so a defect stays invisible until someone reads the exact line. Until |
| 5 | +# now every gate was run by hand, which means they were run when someone |
| 6 | +# remembered. These are the same checks, on every change. |
| 7 | + |
| 8 | +on: |
| 9 | + pull_request: |
| 10 | + push: |
| 11 | + branches: [main] |
| 12 | + |
| 13 | +permissions: |
| 14 | + contents: read |
| 15 | + |
| 16 | +jobs: |
| 17 | + gates: |
| 18 | + name: Framework gates |
| 19 | + runs-on: ubuntu-latest |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + |
| 23 | + - uses: actions/setup-python@v5 |
| 24 | + with: |
| 25 | + python-version: "3.12" |
| 26 | + |
| 27 | + - name: Install PyYAML |
| 28 | + run: pip install --quiet pyyaml |
| 29 | + |
| 30 | + # Frontmatter, manifests, counts, links, credential shapes, retired |
| 31 | + # mechanisms, and the vendor-neutrality boundary. Each gate exists |
| 32 | + # because the thing it checks actually broke once. |
| 33 | + - name: Framework gates |
| 34 | + run: python3 scripts/validate-framework.py |
| 35 | + |
| 36 | + plugin-validate: |
| 37 | + name: claude plugin validate |
| 38 | + runs-on: ubuntu-latest |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v4 |
| 41 | + |
| 42 | + - uses: actions/setup-node@v4 |
| 43 | + with: |
| 44 | + node-version: "22" |
| 45 | + |
| 46 | + # Pinned on purpose. An unpinned validator means a green pull request can |
| 47 | + # turn red tomorrow with no change in this repository, and a behaviour |
| 48 | + # change in the checker arrives silently. Bump it deliberately. |
| 49 | + - name: Install Claude Code |
| 50 | + env: |
| 51 | + CLAUDE_CODE_VERSION: 2.1.221 |
| 52 | + run: npm install --global --no-fund --no-audit "@anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}" |
| 53 | + |
| 54 | + # Runs without credentials — it reads the plugin off disk. This is the |
| 55 | + # check that first caught a skill whose frontmatter did not parse, which |
| 56 | + # had been loading with empty metadata and could never auto-trigger. |
| 57 | + - name: Validate the plugin |
| 58 | + run: claude plugin validate ./claude |
| 59 | + |
| 60 | + installer: |
| 61 | + name: install.sh still works |
| 62 | + runs-on: ubuntu-latest |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v4 |
| 65 | + |
| 66 | + # install.sh is the path for Cursor, Kiro and VS Code and stays supported |
| 67 | + # through the plugin transition, so it must keep running. |
| 68 | + - name: Dry-run every editor |
| 69 | + run: ./install.sh --dry-run --editors=all --scope=project --yes |
0 commit comments