Skip to content

Commit a594e38

Browse files
fix: install ts and add prettier
1 parent 61ed3ac commit a594e38

File tree

3 files changed

+204
-1
lines changed

3 files changed

+204
-1
lines changed

.github/workflows/ci.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
Test:
12+
name: Run tests
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: Run tests
30+
run: pnpm test
31+
32+
Build:
33+
name: Build test
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout repo
37+
uses: actions/checkout@v4
38+
39+
- name: Setup pnpm
40+
uses: pnpm/action-setup@v4
41+
42+
- name: Setup Node.js
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: 22
46+
47+
- name: Install dependencies
48+
run: pnpm install --frozen-lockfile
49+
50+
- name: Test build
51+
run: pnpm build
52+
53+
Format:
54+
name: Check formatting with Prettier
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v4
59+
60+
- name: Setup pnpm
61+
uses: pnpm/action-setup@v4
62+
63+
- name: Set up Node.js
64+
uses: actions/setup-node@v4
65+
with:
66+
node-version: 22
67+
68+
- name: Install dependencies
69+
run: pnpm install --frozen-lockfile
70+
71+
- name: Run Prettier
72+
73+
run: pnpm prettier --check .

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@
1919
"fastify-mcp": "^2.1.0",
2020
"fs": "0.0.1-security",
2121
"path": "^0.12.7",
22+
"typescript": "^5.9.3",
2223
"zod": "^4.3.6"
2324
},
2425
"devDependencies": {
25-
"@types/node": "^25.2.0"
26+
"@types/node": "^25.2.0",
27+
"prettier": "^3.8.1",
28+
"prettier-plugin-organize-imports": "^4.3.0",
29+
"prettier-plugin-packagejson": "^3.0.0"
2630
}
2731
}

pnpm-lock.yaml

Lines changed: 126 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)