Polish: CI workflows + 3 Codex lints + Codex-tailored docs + logo #2
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, staging] | |
| pull_request: | |
| branches: [main, staging] | |
| # Single-plugin repo (no plugins/ subdir, unlike claude-code-lua-plugin which | |
| # is a marketplace catalog). Working directory is the repo root. | |
| # | |
| # Cross-platform matrix: the plugin's hook scripts and MCP server must work | |
| # on macOS, Linux, and Windows — same coverage discipline as the Claude Code | |
| # and Cursor ports (Node ESM hooks, AbortSignal.timeout, path handling all | |
| # need verification per cell). Codex CLI itself is not exercised in CI; | |
| # the install script's preflight checks for `codex` on PATH at user-install | |
| # time, but CI tests the bundled hooks/MCP/lints in isolation. | |
| jobs: | |
| plugin: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-14, ubuntu-22.04, windows-2022] | |
| node: [18, 20] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm test -- --coverage | |
| - run: node scripts/check-coverage.mjs | |
| - if: matrix.os == 'ubuntu-22.04' && matrix.node == '20' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: coverage/ | |
| retention-days: 7 | |
| mcp: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install MCP deps | |
| working-directory: mcp/lua-platform | |
| run: npm ci | |
| - name: Test MCP | |
| working-directory: mcp/lua-platform | |
| run: npm test | |
| - name: Build MCP bundle | |
| working-directory: mcp/lua-platform | |
| run: npm run build | |
| - name: Verify bundle size | |
| run: node scripts/check-bundle-size.mjs |