Skip to content

Commit 940fa50

Browse files
committed
CI: point backend jobs to api directory and add path guards
1 parent 1ef0c12 commit 940fa50

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,18 @@ jobs:
3636
3737
defaults:
3838
run:
39-
working-directory: backend
39+
working-directory: api
4040

4141
steps:
4242
- uses: actions/checkout@v4
43+
- name: Validate control-plane path
44+
run: test -f api/requirements.txt
4345

4446
- uses: actions/setup-python@v5
4547
with:
4648
python-version: '3.11.9'
4749
cache: pip
48-
cache-dependency-path: backend/requirements.txt
50+
cache-dependency-path: api/requirements.txt
4951

5052
- name: Install deps
5153
run: |
@@ -91,7 +93,11 @@ jobs:
9193
needs: [backend, frontend]
9294
steps:
9395
- uses: actions/checkout@v4
96+
- name: Validate build contexts
97+
run: |
98+
test -f api/Dockerfile
99+
test -f frontend/Dockerfile
94100
- name: Build backend image
95-
run: docker build -t replayforge-backend:ci ./backend
101+
run: docker build -t replayforge-backend:ci ./api
96102
- name: Build frontend image
97103
run: docker build -t replayforge-frontend:ci --target production ./frontend

0 commit comments

Comments
 (0)