Skip to content

Commit e7d0277

Browse files
committed
[CI] Add MCP test + registry drift jobs
1 parent 3cb1671 commit e7d0277

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,49 @@ jobs:
6262
- name: Run tests
6363
run: bin/rails db:test:prepare test
6464

65+
mcp:
66+
name: MCP (Ruby ${{ matrix.ruby }})
67+
runs-on: ubuntu-latest
68+
defaults:
69+
run:
70+
working-directory: mcp
71+
strategy:
72+
fail-fast: false
73+
matrix:
74+
ruby: ["3.3", "3.4"]
75+
steps:
76+
- uses: actions/checkout@v6
77+
- name: Set up Ruby
78+
uses: ruby/setup-ruby@v1
79+
with:
80+
ruby-version: ${{ matrix.ruby }}
81+
bundler-cache: true
82+
rubygems: latest
83+
working-directory: mcp
84+
- name: Run tests
85+
run: bundle exec rake test
86+
87+
mcp-registry-check:
88+
name: MCP registry up to date
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v6
92+
- name: Set up Ruby
93+
uses: ruby/setup-ruby@v1
94+
with:
95+
ruby-version: "3.3"
96+
bundler-cache: true
97+
working-directory: mcp
98+
- name: Rebuild registry
99+
working-directory: mcp
100+
run: bundle exec exe/ruby-ui-mcp-build
101+
- name: Fail on diff
102+
run: |
103+
if ! git diff --exit-code mcp/data/registry.json; then
104+
echo "registry.json out of date — run 'cd mcp && bundle exec exe/ruby-ui-mcp-build' and commit"
105+
exit 1
106+
fi
107+
65108
docker-build:
66109
name: Docker build (Devcontainer)
67110
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)