Skip to content

Commit 78d2cce

Browse files
committed
Merge remote-tracking branch 'origin/main' into backend-tests
# Conflicts: # .github/workflows/ci.yml # README.md
2 parents bf30fa5 + 28a926d commit 78d2cce

File tree

28 files changed

+4695
-892
lines changed

28 files changed

+4695
-892
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,20 @@ jobs:
7171
run: |
7272
pip install -r requirements-dev.txt
7373
python -m pytest tests/ -v --cov=app --cov-report=term-missing
74+
75+
frontend-lint:
76+
name: Frontend Lint & Typecheck
77+
runs-on: ubuntu-latest
78+
defaults:
79+
run:
80+
working-directory: frontend
81+
steps:
82+
- uses: actions/checkout@v4
83+
- uses: actions/setup-node@v4
84+
with:
85+
node-version: 20
86+
cache: npm
87+
cache-dependency-path: frontend/package-lock.json
88+
- run: npm ci
89+
- run: npm run lint
90+
- run: npm run typecheck

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Requests go through `httpx.AsyncClient` with FastAPI's ASGI transport,
5757
so the full request/response cycle (middleware, dependency injection,
5858
validation) is exercised without a running server.
5959

60+
Both checks run in CI on pushes to `main` and on pull requests.
61+
6062
### Populating Mock Data
6163
```bash
6264
docker compose -f docker-compose.dev.yml exec backend python scripts/populate_db.py

docker-README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ ADMIN_GITHUB_TEAMS=memory-python-org
152152

153153
**Note:** Development compose file uses port 9002 for frontend, production uses 3000.
154154

155+
### Linting & Type Checking
156+
157+
```bash
158+
# ESLint (must pass with zero errors)
159+
docker compose -f docker-compose.dev.yml exec frontend npm run lint
160+
161+
# TypeScript type checking
162+
docker compose -f docker-compose.dev.yml exec frontend npm run typecheck
163+
```
164+
155165
### Accessing the Database
156166

157167
```bash

0 commit comments

Comments
 (0)