Skip to content

Commit a8ead3f

Browse files
natrajexploreclaude
andcommitted
Add GitHub Actions CI
Backend tests (uv), frontend lint, build and npm audit, and a Docker build, on every push to main and every pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 46dfb5d commit a8ead3f

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
backend:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: backend
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: astral-sh/setup-uv@v6
17+
- run: uv sync --frozen
18+
- run: uv run pytest -q
19+
20+
frontend:
21+
runs-on: ubuntu-latest
22+
defaults:
23+
run:
24+
working-directory: frontend
25+
steps:
26+
- uses: actions/checkout@v5
27+
- uses: actions/setup-node@v5
28+
with:
29+
node-version: 24
30+
cache: npm
31+
cache-dependency-path: frontend/package-lock.json
32+
- run: npm ci
33+
- run: npm run lint
34+
- run: npm run build
35+
- run: npm audit --omit=dev --audit-level=high
36+
37+
docker:
38+
runs-on: ubuntu-latest
39+
needs: [backend, frontend]
40+
steps:
41+
- uses: actions/checkout@v5
42+
- run: docker build -t netverse:ci .

0 commit comments

Comments
 (0)