ci(backend): block releases missing frontend API contract

This commit is contained in:
2026-08-11 11:11:39 +08:00
parent 69a7d53aff
commit c250e97b87
+6
View File
@@ -13,6 +13,12 @@ jobs:
image_name: gitea.waternetwork.cn/orgtjwater/tjwater-backend
dockerfile: Dockerfile
build_context: .
test_command: |
test -f app/api/v1/endpoints/access.py
grep -Fq 'api_router.include_router(access.router' app/api/v1/router.py
grep -Fq '@router.get("/projects"' app/api/v1/endpoints/meta.py
grep -Fq '@router.get("/projects/current"' app/api/v1/endpoints/project.py
grep -Fq '@router.post("/audit-events"' app/api/v1/endpoints/audit.py
deploy_service: backend
deploy_host: 192.168.1.114
secrets: