Skip to content

docs: README + OpenAPI cross-links, require openapi URL (v0.1.5) #14

docs: README + OpenAPI cross-links, require openapi URL (v0.1.5)

docs: README + OpenAPI cross-links, require openapi URL (v0.1.5) #14

name: Validate Cursor Plugin
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- ".cursor-plugin/**"
- ".github/**"
- "assets/**"
- "mcp.json"
- "package.json"
- "package-lock.json"
- "README.md"
- "SUBMISSION.md"
- "rules/**"
- "schemas/**"
- "scripts/**"
- "CHANGELOG.md"
- "skills/**"
jobs:
validate:
name: Validate package structure
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "22"
- name: Install dependencies
run: npm ci
- name: Validate plugin and hosted health
run: npm run check
- name: Check README references
run: |
node -e "const fs=require('node:fs');const text=fs.readFileSync('README.md','utf8');for(const value of ['https://mcp.leadmagic.io/mcp','https://github.com/LeadMagic/leadmagic-openapi','leadmagic://docs','LeadMagic MCP Tools','OAuth']){if(!text.includes(value)){throw new Error('README.md is missing required reference: '+value)}}"