mirror of
https://github.com/aaronjmars/opendia.git
synced 2026-07-09 15:58:28 +00:00
chore: add CI workflow for MCP server and browser extension (#32)
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:
parent
1c38dc2d0e
commit
cfbc3aa83b
1 changed files with 47 additions and 0 deletions
47
.github/workflows/ci.yml
vendored
Normal file
47
.github/workflows/ci.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue