|
6 | 6 |
|
7 | 7 | env: |
8 | 8 | MIN_COVERAGE: ${{ vars.MIN_COVERAGE }} |
| 9 | + SERVER_BINARY: build/bin/server_node.js |
9 | 10 |
|
10 | 11 | jobs: |
11 | 12 | website: |
@@ -128,106 +129,3 @@ jobs: |
128 | 129 | name: test-logs |
129 | 130 | path: logs/ |
130 | 131 | retention-days: 7 |
131 | | - |
132 | | - too-many-cooks-mcp: |
133 | | - name: Too Many Cooks MCP Server |
134 | | - runs-on: ubuntu-latest |
135 | | - steps: |
136 | | - - uses: actions/checkout@v4 |
137 | | - |
138 | | - - name: Setup Dart |
139 | | - uses: dart-lang/setup-dart@v1 |
140 | | - with: |
141 | | - sdk: ${{ vars.DART_VERSION }} |
142 | | - |
143 | | - - name: Setup Node.js |
144 | | - uses: actions/setup-node@v4 |
145 | | - with: |
146 | | - node-version: '20' |
147 | | - cache: 'npm' |
148 | | - cache-dependency-path: examples/too_many_cooks/package-lock.json |
149 | | - |
150 | | - - name: Get tools/build dependencies |
151 | | - working-directory: tools/build |
152 | | - run: dart pub get |
153 | | - |
154 | | - - name: Get MCP server dependencies |
155 | | - working-directory: examples/too_many_cooks |
156 | | - run: | |
157 | | - dart pub get |
158 | | - npm ci |
159 | | -
|
160 | | - - name: Compile MCP server |
161 | | - run: | |
162 | | - set -e |
163 | | - dart compile js -o examples/too_many_cooks/build/bin/server.js examples/too_many_cooks/bin/server.dart |
164 | | - dart run tools/build/add_preamble.dart \ |
165 | | - examples/too_many_cooks/build/bin/server.js \ |
166 | | - examples/too_many_cooks/build/bin/server_node.js \ |
167 | | - --shebang |
168 | | -
|
169 | | - - name: Verify server exists |
170 | | - run: | |
171 | | - set -e |
172 | | - test -f examples/too_many_cooks/build/bin/server_node.js || (echo "Server build failed!" && exit 1) |
173 | | - echo "MCP server built successfully" |
174 | | -
|
175 | | - vscode-extension: |
176 | | - name: VSCode Extension Tests |
177 | | - runs-on: ubuntu-latest |
178 | | - needs: too-many-cooks-mcp |
179 | | - steps: |
180 | | - - uses: actions/checkout@v4 |
181 | | - |
182 | | - - name: Setup Dart |
183 | | - uses: dart-lang/setup-dart@v1 |
184 | | - with: |
185 | | - sdk: ${{ vars.DART_VERSION }} |
186 | | - |
187 | | - - name: Setup Node.js |
188 | | - uses: actions/setup-node@v4 |
189 | | - with: |
190 | | - node-version: '20' |
191 | | - cache: 'npm' |
192 | | - cache-dependency-path: examples/too_many_cooks_vscode_extension/package-lock.json |
193 | | - |
194 | | - - name: Get tools/build dependencies |
195 | | - working-directory: tools/build |
196 | | - run: dart pub get |
197 | | - |
198 | | - - name: Build Too Many Cooks MCP server |
199 | | - run: | |
200 | | - set -e |
201 | | - cd examples/too_many_cooks |
202 | | - dart pub get |
203 | | - npm ci |
204 | | - dart compile js -o build/bin/server.js bin/server.dart |
205 | | - cd ../.. |
206 | | - dart run tools/build/add_preamble.dart \ |
207 | | - examples/too_many_cooks/build/bin/server.js \ |
208 | | - examples/too_many_cooks/build/bin/server_node.js \ |
209 | | - --shebang |
210 | | -
|
211 | | - - name: Get dart_node_vsix dependencies |
212 | | - working-directory: packages/dart_node_vsix |
213 | | - run: dart pub get |
214 | | - |
215 | | - - name: Get extension dependencies (Dart) |
216 | | - working-directory: examples/too_many_cooks_vscode_extension |
217 | | - run: dart pub get |
218 | | - |
219 | | - - name: Get extension dependencies (npm) |
220 | | - working-directory: examples/too_many_cooks_vscode_extension |
221 | | - run: npm ci |
222 | | - |
223 | | - - name: Compile extension and tests |
224 | | - working-directory: examples/too_many_cooks_vscode_extension |
225 | | - run: | |
226 | | - set -e |
227 | | - npm run pretest |
228 | | -
|
229 | | - - name: Run VSCode extension tests |
230 | | - uses: coactions/setup-xvfb@v1 |
231 | | - with: |
232 | | - run: npm test |
233 | | - working-directory: examples/too_many_cooks_vscode_extension |
0 commit comments