mirror of
https://github.com/cursor/plugins.git
synced 2026-09-14 20:00:00 +08:00
4a91a6e266
Adds a GitHub Actions workflow that validates marketplace.json and each plugin's plugin.json against their JSON schemas on PRs. Includes a Node.js validation script and adds missing category/tags fields to the plugin schema. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
489 B
YAML
25 lines
489 B
YAML
name: Validate plugins
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- ".cursor-plugin/marketplace.json"
|
|
- "**/plugin.json"
|
|
- "schemas/**"
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install dependencies
|
|
run: npm install --no-save ajv ajv-formats
|
|
|
|
- name: Validate plugin definitions
|
|
run: node scripts/validate-plugins.mjs
|