mvp-ai's picture
download
raw
3.77 kB
name: Validate extensions
on:
push:
branches: [main]
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install jq + ripgrep + gitleaks (security suites need them)
run: |
sudo apt-get update && sudo apt-get install -y jq ripgrep
# gitleaks: fetch the release binary (not in apt) so push-preflight's
# scan-secrets.sh and its suite run for real instead of skipping.
GL_VER=8.21.2
curl -sSL "https://github.com/gitleaks/gitleaks/releases/download/v${GL_VER}/gitleaks_${GL_VER}_linux_x64.tar.gz" \
| sudo tar -xz -C /usr/local/bin gitleaks
gitleaks version && rg --version | head -1
- name: Install Claude Code (for authoritative plugin validation)
run: npm install -g @anthropic-ai/claude-code
- name: Validate plugin + marketplace manifests
# tests/plugin-validate.sh waives only the reserved plugin-name error (exit 3) until
# 2026-10-31; any other error still fails. TODO(rename): revert to plain
# `claude plugin validate` once the plugin is renamed.
run: |
bash tests/plugin-validate.sh --self-test
bash tests/plugin-validate.sh . || [ $? -eq 3 ]
tmp="$(mktemp -d)"
mkdir -p "$tmp/.claude-plugin"
cp .claude-plugin/plugin.json "$tmp/.claude-plugin/plugin.json"
bash tests/plugin-validate.sh "$tmp" || [ $? -eq 3 ]
- name: Validate extensions (frontmatter, naming, structure)
run: bash tests/validate.sh
# The spec gate runs the Agent Skills reference validator (skills-ref) through uv.
# Third-party action pinned by commit SHA (v10.2.0, 2026-09-21), and uv itself
# pinned, per rules/supply-chain.md - a moved tag can't change what runs here.
- name: Install uv (for the Agent Skills spec gate)
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
version: "0.11.2"
- name: Agent Skills spec gate (official skills-ref + Claude Code fields)
run: bash tests/spec.sh
- name: Doc-drift gate (docs must match disk)
run: bash tests/doc-drift.sh
- name: Agnostic gate (no author-specific identifiers in a public repo)
run: bash tests/agnostic.sh
- name: Skill hygiene ratchet (orphan side files, unnamed related skills, relative script calls, duplicate owns)
run: bash tests/skill-hygiene.sh
- name: Hook contract tests (stdin JSON in, exit 2 + stderr to block)
run: bash tests/hooks.sh
- name: Executable-bit gate (tracked scripts must be executable)
run: bash tests/check-exec-bits.sh
- name: Run skill behavioural test suites
run: bash tests/run-skill-tests.sh
- name: Process-substitution guards (break each producer, the suite must fail)
run: bash tests/procsub-guard.sh
- name: Offline resource checks (verifier scripts)
run: bash tests/check-resources.sh
# scripts/install.ps1 builds its destination paths with backslashes and is a
# Windows-targeted installer (install.sh is the POSIX one), so its guard and
# doctor can only be exercised honestly on a Windows runner. Running it on
# ubuntu would create files literally named "dir\skills\alpha" and the suite
# would pass or fail for the wrong reasons.
install-guard:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # the staleness guard compares HEAD against main
- name: Install guard + doctor behavioural tests
shell: bash
run: bash tests/install-guard.sh

Xet Storage Details

Size:
3.77 kB
·
Xet hash:
53d33d7a1062e93382944b91d35bf7d9a0b8f0e62aa1e6aa323ebaaca04a3d8f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.