Merge pull request #6 from hookdeck/chore/review-changes #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |