fix: Use absolute workspace path for VS Code binary downloads #15
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: MCP Server | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "renamify-mcp/**" | |
| - ".github/workflows/mcp.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "renamify-mcp/**" | |
| - ".github/workflows/mcp.yml" | |
| jobs: | |
| mcp_test: | |
| name: Test MCP Server | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| working-directory: renamify-mcp | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| node-version: [18.x, 20.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # Preserve line endings to prevent Biome formatting issues on Windows | |
| autocrlf: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: 8 | |
| run_install: false | |
| - name: Get pnpm store directory | |
| id: pnpm-cache | |
| shell: bash | |
| run: | | |
| echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
| - uses: actions/cache@v3 | |
| name: Setup pnpm cache | |
| with: | |
| path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('renamify-mcp/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run TypeScript checks | |
| run: pnpm exec tsc --noEmit | |
| - name: Run Biome checks | |
| if: runner.os != 'Windows' | |
| run: pnpm run check | |
| - name: Build | |
| run: pnpm run build | |
| - name: Run tests with coverage | |
| run: pnpm exec vitest run --coverage |