Skip to content

Commit 6108522

Browse files
committed
CI gate workflow
1 parent 36c59e3 commit 6108522

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#==========================================================================================================
2+
# SPDX-License-Identifier: MIT
3+
# Copyright (c) 2025 Vinny Parla
4+
# File: .github/workflows/bearer-auth-demo.yml
5+
# Purpose: CI gate for HTTP Bearer auth demo using Docker-first test image
6+
#==========================================================================================================
7+
name: CI - HTTP Bearer Auth Demo
8+
9+
on:
10+
push:
11+
branches: ["**"]
12+
pull_request:
13+
branches: ["**"]
14+
workflow_dispatch:
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
bearer-demo:
22+
name: HTTPDemo.BearerAuth (Docker-first)
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 30
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Build test image (Dockerfile.demo --target=test)
33+
run: |
34+
docker buildx build \
35+
-f Dockerfile.demo \
36+
--target test \
37+
--progress=plain \
38+
--load \
39+
-t mcp-cpp-test \
40+
.
41+
42+
- name: Run Bearer demo test (401 -> 200)
43+
run: |
44+
docker run --rm --ipc=host \
45+
-e MCP_LOG_LEVEL=INFO \
46+
-e MCP_HTTP_REQUIRE_BEARER=1 \
47+
-e MCP_HTTP_RESOURCE_METADATA_URL=https://auth.example.com/rs \
48+
-e MCP_HTTP_DEMO_TOKEN=demo \
49+
mcp-cpp-test \
50+
ctest --test-dir build -VV --progress -R HTTPDemo.BearerAuth

0 commit comments

Comments
 (0)