Bump picomatch from 4.0.3 to 4.0.4 in /fluentcart-mcp #30
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
| # CI for fluentcart-mcp — typecheck, lint, test, build, smoke. | |
| name: MCP CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: ['fluentcart-mcp/**'] | |
| pull_request: | |
| branches: [main] | |
| paths: ['fluentcart-mcp/**'] | |
| concurrency: | |
| group: mcp-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| working-directory: fluentcart-mcp | |
| jobs: | |
| quality: | |
| name: Quality | |
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || fromJSON('["self-hosted", "linux", "x64", "vps"]') }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: fluentcart-mcp/package-lock.json | |
| - run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Lint | |
| run: npm run lint | |
| test: | |
| name: Test | |
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || fromJSON('["self-hosted", "linux", "x64", "vps"]') }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: fluentcart-mcp/package-lock.json | |
| - run: npm ci | |
| - name: Test with coverage | |
| run: npm run test:coverage | |
| - name: Coverage summary | |
| if: always() | |
| run: | | |
| echo "## Test Coverage" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| if [ -f coverage/coverage-summary.json ]; then | |
| node -e " | |
| const c = require('./coverage/coverage-summary.json').total; | |
| const fmt = (m) => m.pct + '%'; | |
| console.log('| Metric | Coverage |'); | |
| console.log('| --- | --- |'); | |
| console.log('| Statements | ' + fmt(c.statements) + ' |'); | |
| console.log('| Branches | ' + fmt(c.branches) + ' |'); | |
| console.log('| Functions | ' + fmt(c.functions) + ' |'); | |
| console.log('| Lines | ' + fmt(c.lines) + ' |'); | |
| " >> $GITHUB_STEP_SUMMARY | |
| fi | |
| build: | |
| name: Build & Smoke | |
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || fromJSON('["self-hosted", "linux", "x64", "vps"]') }} | |
| needs: [quality, test] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: fluentcart-mcp/package-lock.json | |
| - run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Verify dist | |
| run: | | |
| if [ ! -f dist/index.js ]; then | |
| echo "::error::Missing dist/index.js" | |
| exit 1 | |
| fi | |
| echo "## Build" >> $GITHUB_STEP_SUMMARY | |
| echo "dist/index.js: $(du -h dist/index.js | cut -f1)" >> $GITHUB_STEP_SUMMARY | |
| - name: Smoke test | |
| run: | | |
| node dist/index.js --version | |
| node dist/index.js --help |