Add rudimentary GitHub CI

This commit is contained in:
Dominik Jain 2025-11-05 23:07:27 +01:00
parent 6396e1cb5b
commit 5483af0cc6
2 changed files with 65 additions and 1 deletions

63
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,63 @@
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install root dependencies
run: npm ci
- name: Check formatting
run: npm run format:check
- name: Install common dependencies
working-directory: ./common
run: npm ci
- name: Type check common
working-directory: ./common
run: npx tsc --noEmit
- name: Build common
working-directory: ./common
run: npm run build
- name: Install mcp-server dependencies
working-directory: ./mcp-server
run: npm ci
- name: Type check mcp-server
working-directory: ./mcp-server
run: npx tsc --noEmit
- name: Build mcp-server
working-directory: ./mcp-server
run: npm run build
- name: Install penpot-plugin dependencies
working-directory: ./penpot-plugin
run: npm ci
- name: Type check penpot-plugin
working-directory: ./penpot-plugin
run: npx tsc --noEmit
- name: Build penpot-plugin
working-directory: ./penpot-plugin
run: npm run build

View File

@ -7,7 +7,8 @@
"build:all": "concurrently --names \"COMMON,MCP-SERVER,PLUGIN\" --prefix-colors \"green,cyan,magenta\" --success first \"npm --prefix common install && npm --prefix common run build\" \"npm --prefix mcp-server run build\" \"npm --prefix penpot-plugin run build\"",
"start:all": "concurrently --names \"MCP-SERVER,PLUGIN-SERVER\" --prefix-colors \"cyan,magenta\" --kill-others-on-fail \"npm --prefix mcp-server start\" \"npm --prefix penpot-plugin run dev\"",
"bootstrap": "npm run install:all && npm run build:all && npm run start:all",
"format": "prettier --write ."
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"repository": {
"type": "git",