AT-360 Added Diagram Chat Functionality To Mermaid/sdk So MCP Server Can Directly Access Mermaid AI #298
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: Build | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| test: | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| node: ['18.18.x', '20.x', '22.x', '24.x'] | |
| pkg: ['sdk', 'cli'] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: | |
| labels: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v2 | |
| - name: Setup Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: pnpm | |
| node-version: ${{ matrix.node }} | |
| - name: Install dependencies | |
| run: | | |
| pnpm install --frozen-lockfile | |
| - name: Test ${{ matrix.pkg }} | |
| run: | | |
| pnpm --filter='${{ matrix.pkg }}' test | |
| - name: Lint (if present) ${{ matrix.pkg }} | |
| run: pnpm --if-present --filter='${{ matrix.pkg }}' lint | |
| - name: E2E tests (if present) for ${{ matrix.pkg }} | |
| env: | |
| TEST_MERMAIDCHART_API_TOKEN: ${{ secrets.TEST_MERMAIDCHART_API_TOKEN }} | |
| TEST_MERMAIDCHART_PROJECT_ID: ${{ secrets.TEST_MERMAIDCHART_PROJECT_ID }} | |
| TEST_MERMAIDCHART_BASE_URL : ${{ secrets.TEST_MERMAIDCHART_BASE_URL }} | |
| run: | | |
| pnpm --if-present --filter='${{ matrix.pkg }}' test:e2e |