mirror of
https://github.com/redis/agent-skills.git
synced 2026-09-19 01:25:14 +08:00
bc64894ce3
* 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.
37 lines
749 B
YAML
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
|