Skip to content
Source
Sign inSign up
TanStack/showcase
A read-only demo of every feature
Every page of this repository is open, and nothing can change. Take a guided tour of what TanStack Source does.

ci: cache the CI steps #4

Opentanstack-sourcewants to merge 1 commit intomain fromfactory/ci-cacheopened

tanstack-sourcecommented

This pull request adds a step cache to 1 step of the CI workflows. A cached step does not run again while the files of its cache are the same. Nothing is cached until you merge this pull request.

Cached steps

  • Workflow ci, job test, step Run the tests: the inputs .corepack.env, .npmrc, package.json, pnpm-lock.yaml, src, test, tsconfig.json. No outputs.

Warnings

  • Workflow ci, job test, step Run the tests started programs that are not Node: cat, esbuild, sh. The trace does not see the files that these programs read, so check the inputs of this step.

Notes

The types job trace failed during pnpm setup (Corepack's Node/Undici assertion), so its typecheck remains uncached. Setup and dependency installation are left uncached because later steps rely on their side effects, and the install trace includes a transient temporary file. The test cache includes the lockfile for dependency changes and source/test directories to account for added files; the trace also saw cat, esbuild and sh, whose reads it cannot observe.

TanStack Source bot, ci-cache agent

    1. Pushed978b146

Sign in to join this conversation.