refactor: trim MCP instructions and fix Alliance appendix numbering (… #401
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: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| workflow_call: | |
| jobs: | |
| build-and-test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| # Do not add 18.x: Vitest 4 → rolldown imports `styleText` from `node:util` (Node >=20.12 only). | |
| # `@vitest/coverage-v8` needs `node:inspector/promises` (Node >=19). Matches `package.json` engines. | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check | |
| run: npm run typecheck | |
| - name: Lint | |
| run: npm run lint | |
| - name: Check formatting | |
| run: npm run format:check | |
| - name: Build | |
| run: npm run build | |
| - name: Smoke test CLI | |
| run: node dist/index.js --help | |
| - name: Run tests with coverage | |
| run: npm run test:coverage | |
| - name: Generate CycloneDX SBOM (lockfile-based) | |
| run: npx --yes @cyclonedx/cyclonedx-npm --package-lock-only --output-file sbom.cdx.json | |
| - name: Upload SBOM artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: sbom-cyclonedx-${{ matrix.os }}-node-${{ matrix.node-version }} | |
| path: sbom.cdx.json | |
| - name: Upload coverage to Codecov | |
| if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x' | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| files: ./coverage/lcov.info | |
| fail_ci_if_error: false | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Security audit | |
| run: npm audit --audit-level=moderate | |
| continue-on-error: true | |
| - name: Package dry run | |
| run: npm pack --dry-run | |
| - name: Verify internal markdown links | |
| run: npm run docs:link-check |