diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f89ae1788..5c68e7227 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -421,7 +421,9 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - run: docker build --file infra/docs.Dockerfile . + # The docs image caches no layers, so main, which tests nothing, skips it. + - if: *tests + run: docker build --file infra/docs.Dockerfile . # Both Rust targets share the `backend` stage, which builds once. A build # restores main's layers, so only what changed since main recompiles: # usually just the workspace's own crates, after cargo-chef's dependencies. diff --git a/docs/dev/testing.md b/docs/dev/testing.md index 796851f56..6ccdc0794 100644 --- a/docs/dev/testing.md +++ b/docs/dev/testing.md @@ -229,7 +229,8 @@ merge queue start from, since GitHub lets every branch read `main`'s caches: - `checks` and `docs` save no cache, and `web` saves only the pnpm store, which `package` and `e2e` save too, so `main` skips them. -- `docker` builds the images, saving their layers. +- `docker` builds the auth and web images, saving their layers. It skips the + docs image, which caches none. - The jobs that restore a Rust cache build only when no cache is saved under their current key, as after a dependency or toolchain change, or after GitHub evicts an unused cache. Then they build without testing. `package` and