Three CI-speed wins (CI-config only, no app code):
Cache NuGet packages — test and migrations both ran dotnet restore from scratch every run (act_runner uses fresh containers). Added actions/cache@v4 on ~/.nuget/packages keyed on hashFiles('Directory.Packages.props', 'global.json') (both exist at repo root; clean cache key thanks to Central Package Management) before the Restore step in both jobs.
Shallow checkout for test — test used fetch-depth: 0 but needs no history; dropped to 1. build (needs tags for git describe) left untouched. migrations checkout already defaults to depth 1 (documented with a comment).
openapi-generator jar layer reorder (Dockerfile) — moved the wget of the 7.15.0 generator jar to before the openapi spec COPY, so API PRs that change v1.json no longer bust the ~30MB download layer. Codegen still runs after the spec copy. Exact URL/version preserved.
docs/ci-cd.md updated in the same PR.
YAML re-validated (yaml.safe_load). Watch this PR's run for the gating checks; the NuGet-cache effect is visible on the second run (first primes the cache).
Closes #190.
Three CI-speed wins (CI-config only, no app code):
1. **Cache NuGet packages** — `test` and `migrations` both ran `dotnet restore` from scratch every run (act_runner uses fresh containers). Added `actions/cache@v4` on `~/.nuget/packages` keyed on `hashFiles('Directory.Packages.props', 'global.json')` (both exist at repo root; clean cache key thanks to Central Package Management) before the `Restore` step in both jobs.
2. **Shallow checkout for `test`** — `test` used `fetch-depth: 0` but needs no history; dropped to `1`. `build` (needs tags for `git describe`) left untouched. `migrations` checkout already defaults to depth 1 (documented with a comment).
3. **openapi-generator jar layer reorder (Dockerfile)** — moved the `wget` of the 7.15.0 generator jar to *before* the openapi spec `COPY`, so API PRs that change `v1.json` no longer bust the ~30MB download layer. Codegen still runs after the spec copy. Exact URL/version preserved.
`docs/ci-cd.md` updated in the same PR.
YAML re-validated (`yaml.safe_load`). Watch this PR's run for the gating checks; the NuGet-cache effect is visible on the *second* run (first primes the cache).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Three CI wins from ersatztv#190, all config-only:
- Cache ~/.nuget/packages via actions/cache@v4 in both the `test` and
`migrations` jobs, keyed on Directory.Packages.props + global.json, so
dotnet restore no longer starts from scratch every run.
- Shallow-checkout the `test` job (fetch-depth: 1) since it never runs
git describe/log; only `build` needs full history for versioning. The
`migrations` job's checkout was already effectively shallow (default
fetch-depth 1), documented explicitly.
- Reorder the Dockerfile so the openapi-generator jar wget happens before
the openapi spec COPY, decoupling the ~30MB download layer from spec
changes (e.g. v1.json) that previously busted it on every API PR.
Documented all three in docs/ci-cd.md alongside the existing job/Dockerfile
notes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
timothy
merged commit b37c2298b5 into main2026-07-08 19:54:25 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #190.
Three CI-speed wins (CI-config only, no app code):
testandmigrationsboth randotnet restorefrom scratch every run (act_runner uses fresh containers). Addedactions/cache@v4on~/.nuget/packageskeyed onhashFiles('Directory.Packages.props', 'global.json')(both exist at repo root; clean cache key thanks to Central Package Management) before theRestorestep in both jobs.test—testusedfetch-depth: 0but needs no history; dropped to1.build(needs tags forgit describe) left untouched.migrationscheckout already defaults to depth 1 (documented with a comment).wgetof the 7.15.0 generator jar to before the openapi specCOPY, so API PRs that changev1.jsonno longer bust the ~30MB download layer. Codegen still runs after the spec copy. Exact URL/version preserved.docs/ci-cd.mdupdated in the same PR.YAML re-validated (
yaml.safe_load). Watch this PR's run for the gating checks; the NuGet-cache effect is visible on the second run (first primes the cache).🤖 Generated with Claude Code