ci: one workflow per deliverable, filtered by path #171

Merged
amiryahaya merged 1 commit from ci/split-workflows into main 2026-11-06 15:09:10 +01:00
Owner

Splits ci.yml into one workflow per deliverable, each triggered only by its own paths.

Workflows

File Runs when these change
api.yml api/**, Makefile, scripts/check-coverage.sh
clients.yml api/openapi/**, scripts/generate-clients.sh
web-<app>.yml (ticket, admin, partner) web/** except the other two apps' folders, the spec, scripts/generate-clients.sh, scripts/web-e2e.sh
mobile-ticket.yml mobile/ticket/**, the spec, scripts/generate-clients.sh, scripts/mobile-ci.sh

Each file also runs when it is edited itself.

  • The jobs' steps are moved as they were.
  • Removed: the changes job, scripts/detect-changes.sh with its test, and ci-gate.
  • A docs-only change now runs nothing.

What runs differently from before

  • No required check anymore. A workflow that does not trigger reports no status, so branch protection must not require these checks. None is required on main today, so nothing is stuck. A red check on the PR is the signal.
  • Fewer workflows run on CI edits. Editing one workflow runs only that workflow; before, any workflow change ran everything. Likewise, a change to a script other than the ones listed above no longer runs the API job.
  • Admin and partner run on one more file. They now also run when web/apps/ticket/package.json changes, because web-e2e.sh reads the Playwright pin from it.
  • Docs updated: the CI section of CLAUDE.md (how to add a deliverable or app) and docs/development-standards.md.

Checks

  • make cover: 91.5 % total (minimum 80 %). No Go code changed.
  • actionlint: only the warnings that were already there. upload-artifact@v3 is pinned for Forgejo, and the old shellcheck note on the Postgres wait loop remains.
  • Dual-pass review:
    • ponytail-review: no findings.
    • Correctness review: no Critical or Important findings. It checked that the steps match, that each workflow's paths cover the files its job reads, the order of the negated paths, and that no old references remain.

Not verified

  • The path filters themselves. This PR touches every workflow file, so every workflow runs on it. The first single-app PR after the merge is the real test.
  • Moved files. Whether Forgejo counts a moved file at both its old and its new path. If it counts only the new path, moving a file out of web/packages/ into one app would run only that app.

🤖 Generated with Claude Code

Splits `ci.yml` into one workflow per deliverable, each triggered only by its own paths. ## Workflows | File | Runs when these change | |---|---| | `api.yml` | `api/**`, `Makefile`, `scripts/check-coverage.sh` | | `clients.yml` | `api/openapi/**`, `scripts/generate-clients.sh` | | `web-<app>.yml` (ticket, admin, partner) | `web/**` except the other two apps' folders, the spec, `scripts/generate-clients.sh`, `scripts/web-e2e.sh` | | `mobile-ticket.yml` | `mobile/ticket/**`, the spec, `scripts/generate-clients.sh`, `scripts/mobile-ci.sh` | Each file also runs when it is edited itself. - The jobs' steps are moved as they were. - Removed: the `changes` job, `scripts/detect-changes.sh` with its test, and `ci-gate`. - A docs-only change now runs nothing. ## What runs differently from before - **No required check anymore.** A workflow that does not trigger reports no status, so branch protection must not require these checks. None is required on `main` today, so nothing is stuck. A red check on the PR is the signal. - **Fewer workflows run on CI edits.** Editing one workflow runs only that workflow; before, any workflow change ran everything. Likewise, a change to a script other than the ones listed above no longer runs the API job. - **Admin and partner run on one more file.** They now also run when `web/apps/ticket/package.json` changes, because `web-e2e.sh` reads the Playwright pin from it. - **Docs updated:** the CI section of `CLAUDE.md` (how to add a deliverable or app) and `docs/development-standards.md`. ## Checks - `make cover`: **91.5 %** total (minimum 80 %). No Go code changed. - `actionlint`: only the warnings that were already there. `upload-artifact@v3` is pinned for Forgejo, and the old shellcheck note on the Postgres wait loop remains. - Dual-pass review: - ponytail-review: no findings. - Correctness review: no Critical or Important findings. It checked that the steps match, that each workflow's paths cover the files its job reads, the order of the negated paths, and that no old references remain. ## Not verified - **The path filters themselves.** This PR touches every workflow file, so every workflow runs on it. The first single-app PR after the merge is the real test. - **Moved files.** Whether Forgejo counts a moved file at both its old and its new path. If it counts only the new path, moving a file out of `web/packages/` into one app would run only that app. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ci: one workflow per deliverable, filtered by path
All checks were successful
clients / clients (pull_request) Successful in 3m12s
web-partner / web-partner (pull_request) Successful in 4m17s
web-admin / web-admin (pull_request) Successful in 11m39s
web-ticket / web-ticket (pull_request) Successful in 6m25s
api / api (pull_request) Successful in 21m6s
mobile-ticket / mobile-ticket (pull_request) Successful in 24m41s
fc86539013
Split ci.yml into api, clients, web-ticket, web-admin, web-partner and
mobile-ticket workflows, each triggered only by its own paths. The
changes job, detect-changes.sh and ci-gate are gone; no status check is
required on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/kws!171
No description provided.