Files
redis__agent-skills/.github/workflows/ci.yml
Vasko Atanasov bc64894ce3 fix(validate): fail loudly instead of silently skipping validation (#39)
* fix(validate): fail structure validation when --all finds no skills

`--all` walking to zero skill directories printed "No skill directories found."
and exited 0, so a broken walk reads as a clean pass. The check then reports
success having validated nothing, which is worse than failing: CI goes green
over an empty result.

`--changed` legitimately resolves to nothing when a PR touches no skill, so it
keeps the exit-0 path.

* ci: run validation on every pull request, not only those targeting main

Restricting the pull_request trigger to branches: [main] means a PR stacked on
another branch gets no checks at all, which reads as passing rather than as
unverified.
2026-08-11 15:37:46 +03:00

37 lines
749 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- name: Install skill-validator
run: |
version="$(node -p "require('./package.json').skillValidatorVersion")"
go install "github.com/agent-ecosystem/skill-validator/cmd/skill-validator@${version}"
- name: Install dependencies
run: npm ci
- name: Validate
run: npm run validate