Skip to content

Commit ffc681a

Browse files
committed
Test first MCP server sample in GitHub Actions
1 parent ab12174 commit ffc681a

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

‎.github/workflows/build-samples.yml‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- "dotnet-ai/provider-agnostic-chat-gateway/**"
88
- "dotnet-ai/hybrid-search-ef-core-pgvector/**"
99
- "dotnet-ai/agent-framework-incident-triage/**"
10+
- "dotnet-ai/mcp-server-csharp-dotnet/**"
1011
- "dotnet-aspire/orchestrate-distributed-system/**"
1112
- "software-architecture/architecture-testing-dotnet/**"
1213
- "distributed-systems/transactional-outbox-ef-core/**"
@@ -39,6 +40,7 @@ on:
3940
- "dotnet-ai/provider-agnostic-chat-gateway/**"
4041
- "dotnet-ai/hybrid-search-ef-core-pgvector/**"
4142
- "dotnet-ai/agent-framework-incident-triage/**"
43+
- "dotnet-ai/mcp-server-csharp-dotnet/**"
4244
- "dotnet-aspire/orchestrate-distributed-system/**"
4345
- "software-architecture/architecture-testing-dotnet/**"
4446
- "distributed-systems/transactional-outbox-ef-core/**"
@@ -2052,3 +2054,51 @@ jobs:
20522054
dotnet-ai/agent-framework-incident-triage/AgentFrameworkIncidentTriage.slnx
20532055
--configuration Release
20542056
--no-build
2057+
2058+
test-mcp-server-csharp-dotnet:
2059+
name: Test first MCP server sample
2060+
runs-on: ubuntu-latest
2061+
2062+
defaults:
2063+
run:
2064+
working-directory: dotnet-ai/mcp-server-csharp-dotnet
2065+
2066+
steps:
2067+
- name: Check out repository
2068+
uses: actions/checkout@v5
2069+
2070+
- name: Install .NET 10 SDK
2071+
uses: actions/setup-dotnet@v5
2072+
with:
2073+
dotnet-version: "10.0.401"
2074+
2075+
- name: Show selected .NET SDK
2076+
run: dotnet --version
2077+
2078+
- name: Restore
2079+
run: >
2080+
dotnet restore
2081+
FirstMcpServer.slnx
2082+
2083+
- name: Build
2084+
run: >
2085+
dotnet build
2086+
FirstMcpServer.slnx
2087+
--configuration Release
2088+
--no-restore
2089+
2090+
- name: Test deterministic layers
2091+
run: >
2092+
dotnet test
2093+
tests/FirstMcpServer.Tests/FirstMcpServer.Tests.csproj
2094+
--configuration Release
2095+
--no-build
2096+
2097+
- name: Verify MCP stdio end to end
2098+
run: >
2099+
dotnet run
2100+
--project src/McpClientDemo/McpClientDemo.csproj
2101+
--configuration Release
2102+
--no-build
2103+
--
2104+
src/FirstMcpServer/bin/Release/net10.0/FirstMcpServer.dll

0 commit comments

Comments
 (0)