chore: add CI workflow for MCP server and browser extension (#32)
Some checks failed
CI / Browser extension (push) Has been cancelled
CI / MCP server (push) Has been cancelled

Adds .github/workflows/ci.yml running on push to main and on PRs:
- MCP server: npm ci + node --check server.js
- Extension: npm ci, build chrome+firefox, validate builds,
  structure tests, and web-ext lint on the Firefox build.

All steps verified locally against the current tree.

Co-authored-by: aaronjmars <aaronjmars@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@aaronjmars 2026-06-14 12:05:07 -04:00 committed by GitHub
parent 1c38dc2d0e
commit cfbc3aa83b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

47
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,47 @@
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
mcp:
name: MCP server
runs-on: ubuntu-latest
defaults:
run:
working-directory: opendia-mcp
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: opendia-mcp/package-lock.json
- run: npm ci
- name: Syntax-check server
run: node --check server.js
extension:
name: Browser extension
runs-on: ubuntu-latest
defaults:
run:
working-directory: opendia-extension
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: opendia-extension/package-lock.json
- run: npm ci
- name: Build Chrome + Firefox
run: npm run build
- name: Validate builds
run: node build.js validate
- name: Structure tests
run: node test-extension.js
- name: Lint Firefox build (web-ext)
run: npx web-ext lint --source-dir=dist/firefox --self-hosted