Vendor CI reusable workflows locally after infra/ci-workflows failed to resolve.
CI / changes (push) Successful in 33s
dotnet8-ci / build-and-test (push) Successful in 31m34s
CI / backend (push) Successful in 31m44s
node-ci / build (push) Successful in 10m31s
CI / frontend (push) Successful in 10m39s

Remote uses: @v1 never scheduled jobs; keep thin callers against local workflow_call copies until collaborative owners include Trent.
This commit is contained in:
2026-10-06 19:56:18 +08:00
parent 5a175e3fba
commit 192cb36dc7
4 changed files with 304 additions and 14 deletions
+8 -7
View File
@@ -31,13 +31,17 @@ Unlike VigilCareClinical, there is no gateway service, and the frontend does not
## 2. CI
CI is a **thin caller** of shared reusable workflows in `infra/ci-workflows@v1`.
Steps are not copied into this repo.
CI is a **thin caller** of local reusable workflows
(`.gitea/workflows/dotnet8-ci.yml`, `.gitea/workflows/node-ci.yml`). Those files
are vendored from the shared `infra/ci-workflows` kit because this repo’s owner
is not yet listed under that repo’s Actions **collaborative owners** — remote
`uses: infra/ci-workflows/...@v1` fails in 0s with no runner/steps. Switch the
caller back to `@v1` once access is granted.
| Job | Workflow |
| --- | --- |
| `backend` | `dotnet8-ci.yml@v1` — Postgres/Redis as `services:`, reached by DNS (`Host=postgres`, `redis:6379`) |
| `frontend` | `node-ci.yml@v1` — typecheck → unit tests → `vite build` |
| `backend` | `dotnet8-ci.yml` — Postgres/Redis as `services:`, reached by DNS (`Host=postgres`, `redis:6379`) |
| `frontend` | `node-ci.yml` — typecheck → unit tests → `vite build` |
A local `changes` job path-filters so a frontend-only push does not start Postgres.
`workflow_dispatch` forces both stacks.
@@ -47,9 +51,6 @@ the caller maps those in `test_env` to the service containers. MinIO is not star
in CI (tests do not drive object storage). Local deps still come from
`docker compose up -d postgres redis minio`.
**Prerequisite:** `infra/ci-workflows` Settings → Actions → collaborative owners
must include this repo’s owner.
---
## 3. Shared production infrastructure