Skip to content

feat: CLI-first discovery, context verification (show whoami; confirm unless clear match) #19

feat: CLI-first discovery, context verification (show whoami; confirm unless clear match)

feat: CLI-first discovery, context verification (show whoami; confirm unless clear match) #19

name: Validate and Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate-plugin:
name: Cursor plugin validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: package.json
- name: Install dependencies
run: npm install
- name: Validate Cursor plugin
run: npm run validate:plugin
skill-lint:
name: Skill quality (Tessl lint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: package.json
- name: Install dependencies
run: npm install
- name: Lint skills (Tessl)
run: npm run skill:lint
summary:
name: Validate & Lint Summary
runs-on: ubuntu-latest
needs: [validate-plugin, skill-lint]
if: always()
steps:
- name: Check results
run: |
echo "## Validate & Lint Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ "${{ needs.validate-plugin.result }}" == "failure" ] || \
[ "${{ needs.skill-lint.result }}" == "failure" ]; then
echo "**Result:** Validation or lint failed" >> $GITHUB_STEP_SUMMARY
exit 1
fi
echo "**Result:** All validation and lint checks passed!" >> $GITHUB_STEP_SUMMARY