Add source-backed X guidance to social media skill (#28) #49
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| name: Validate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 'lts/*' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run linting | |
| run: npm run lint | |
| - name: Run tests | |
| run: npm test | |
| - name: Validate plugin.json | |
| run: | | |
| if [ -f ".claude-plugin/plugin.json" ]; then | |
| echo "Validating plugin.json..." | |
| node -e "JSON.parse(require('fs').readFileSync('.claude-plugin/plugin.json'))" | |
| echo "plugin.json is valid JSON" | |
| fi | |
| - name: Validate marketplace.json | |
| run: | | |
| if [ -f ".claude-plugin/marketplace.json" ]; then | |
| echo "Validating marketplace.json..." | |
| node -e "JSON.parse(require('fs').readFileSync('.claude-plugin/marketplace.json'))" | |
| echo "marketplace.json is valid JSON" | |
| fi | |
| - name: Check for broken markdown links | |
| uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
| with: | |
| use-quiet-mode: 'yes' | |
| config-file: '.github/mlc_config.json' | |
| continue-on-error: true | |
| commitlint: | |
| name: Lint Commits | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 'lts/*' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Validate commits | |
| run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose |