Skip to content

Commit fb60c6c

Browse files
committed
fix .github/workflows/mcp.yml
1 parent 38e99d5 commit fb60c6c

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/mcp.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
name: Test MCP Server
1818
runs-on: ${{ matrix.os }}
1919

20+
defaults:
21+
run:
22+
working-directory: renamify-mcp
23+
2024
strategy:
2125
matrix:
2226
os: [ubuntu-latest, macos-latest, windows-latest]
@@ -50,16 +54,16 @@ jobs:
5054
${{ runner.os }}-pnpm-store-
5155
5256
- name: Install dependencies
53-
run: cd renamify-mcp && pnpm install
57+
run: pnpm install
5458

5559
- name: Run TypeScript checks
56-
run: cd renamify-mcp && pnpm exec tsc --noEmit
60+
run: pnpm exec tsc --noEmit
5761

5862
- name: Run Biome checks
59-
run: cd renamify-mcp && pnpm run check
60-
61-
- name: Run tests with coverage
62-
run: cd renamify-mcp && pnpm exec vitest run --coverage
63+
run: pnpm run check
6364

6465
- name: Build
65-
run: cd renamify-mcp && pnpm run build
66+
run: pnpm run build
67+
68+
- name: Run tests with coverage
69+
run: pnpm exec vitest run --coverage

renamify-mcp/src/index.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ describe('MCP Server', () => {
1717
});
1818

1919
it('should start without errors', async () => {
20-
const serverPath = join(__dirname, 'index.ts');
20+
const serverPath = join(__dirname, '..', 'dist', 'index.js');
2121

22-
// Start the server with bun
23-
serverProcess = spawn('bun', ['run', serverPath], {
22+
// Start the server with node
23+
serverProcess = spawn('node', [serverPath], {
2424
stdio: ['pipe', 'pipe', 'pipe'],
2525
});
2626

@@ -92,9 +92,9 @@ describe('MCP Server', () => {
9292
});
9393

9494
it('should list available tools', async () => {
95-
const serverPath = join(__dirname, 'index.ts');
95+
const serverPath = join(__dirname, '..', 'dist', 'index.js');
9696

97-
serverProcess = spawn('bun', ['run', serverPath], {
97+
serverProcess = spawn('node', [serverPath], {
9898
stdio: ['pipe', 'pipe', 'pipe'],
9999
});
100100

0 commit comments

Comments
 (0)