-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.39 KB
/
Copy pathci.yml
File metadata and controls
46 lines (43 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Syntax-compile all backend Python
run: python -m compileall -q nemesis.py backend
- name: MCP server module resolves its imports structurally
run: |
test -f backend/mcp/nemesis_mcp_server.py || { echo "MCP server entrypoint missing"; exit 1; }
grep -q "nemesis_mcp_server.py" nemesis.py || { echo "launcher does not reference MCP server"; exit 1; }
- name: Compose files are valid
run: |
cp backend/.env.example backend/.env
docker compose -f docker-compose.yml config --quiet
docker compose -f docker-compose.hub.yml config --quiet
rm backend/.env
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm ci
- name: Lint (advisory while legacy findings are worked down)
continue-on-error: true
run: npm run lint --if-present
- name: Build (blocking)
run: npm run build