Guide · Updated November 24, 2026
Faster Vitest and Jest on GitHub Actions without cold npm ci on every PR
For TypeScript and JavaScript teams paying $0.006/min while every PR re-installs dependencies and runs tests serially: drop-in Node 22 YAML with warm starts and 1-step file splitting.
In short
Every GitHub-hosted ubuntu-latest job starts on a fresh VM, so even with actions/setup-node caching you pay to download a tar archive, unpack it, run npm ci, and execute Vitest or Jest in one slow job (at $0.006/min rounded up per minute). On Vitko Runners ($0.002/min billed per second, 2,000 free min/mo), adding vitko-inc/checkpoint@v1 starts every PR from pre-warmed dependency state saved on your default branch, and vitko-inc/split-tests@v1 splits Vitest or Jest across parallel 2 vCPU / 8 GB VMs by file in a single step—with parent wait time unbilled.
Cold actions/cache + matrix vs. warm starts + 1-step splitting
Comparison for a TypeScript/Node.js repository running Vitest or Jest on 2 vCPU Ubuntu x64 runners (sources checked October–November 2026).
| Workflow bottleneck | GitHub-hosted (ubuntu-latest) | Vitko Runners (checkpoint + split-tests) |
|---|---|---|
| Node 22 + package store | Downloads & unpacks tar cache on every job; 10 GB repo cap, 7-day expiry | Pre-warmed VM snapshot of default branch (~/.npm / pnpm store already on disk) |
| Parallel test execution | Manual matrix (--shard=1/4); repeats npm ci per shard | One step splits Vitest or Jest by file; setup runs once before the split |
| Test output & failures | Separate log and check per matrix shard | One log, one failure list, and one JUnit report in the original job |
| 2 vCPU Linux rate & cap | $0.006/min rounded up per job (each shard rounds up) | $0.002/min per second (parent wait unbilled); default $100/mo admin spend limit for new organizations |
Drop-in Node 22 YAML: Vitest with npm
Place vitko-inc/checkpoint@v1 right after npm ci. Runs of your default branch save Node 22 and ~/.npm; pull requests start with the warm package store already present, so npm ci --prefer-offline skips network downloads. Then vitko-inc/split-tests@v1 splits your Vitest suite by file automatically.
name: Vitest CI
on: [push, pull_request]
jobs:
test:
runs-on: vitko-ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci --prefer-offline
- uses: vitko-inc/checkpoint@v1
- uses: vitko-inc/split-tests@v1
with:
run: npx vitest runDrop-in Node 22 YAML: Jest with pnpm
pnpm pairs especially well with warm starts because pnpm keeps its content-addressable store in the runner’s home directory and hard-links node_modules into the fresh checkout in seconds. Swap npx vitest run for pnpm exec jest --ci:
name: Jest CI
on: [push, pull_request]
jobs:
test:
runs-on: vitko-ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: pnpm i --frozen-lockfile
- uses: vitko-inc/checkpoint@v1
- run: pnpm run build
- uses: vitko-inc/split-tests@v1
with:
run: pnpm exec jest --ciNotice pnpm run build runs before vitko-inc/split-tests@v1: parallel parts start from the job’s state right before the split and cannot reach the network, so compile TypeScript or workspace packages once before splitting.
Practical tips for JS/TS monorepos and CI Bench data
- Invoke Vitest or Jest directly in
run: Passnpx vitest runornpx jest --cias a single command (notnpm testchained with&&) sosplit-testsdetects the test tool and distributes test files evenly. - Separate network integration tests: If a subset of specs hits external staging APIs, filter them out of the split with a filename pattern or separate Vitest/Jest config and run them in a plain
run:step afterward. - Measured TypeScript results: In open CI Bench v1 (twelve open-source workloads measured October 7–11, 2026; Vitko maintains CI Bench and sells one of the runners measured), combining warm starts and
split-testscut median job time on Node/TypeScript workloads likevite,vue, andtscompared with plain 2 vCPU runs. Full raw logs are on cibench.com. - Check your exact repo savings locally first: Run
vitko runners estimate usage-report.csvvia the Vitko CLI or plug your monthly jobs into the CI cost calculator.
When Vitko Runners is the wrong fit today
- Heavy Docker image builds that need remote layer caching: Vitko Runners does not offer Docker layer caching today. Keep container-publishing jobs on a runner with layer caching and move JS/TS test and lint jobs to Vitko.
- Memory-hungry monorepo builds needing more than 8 GB RAM or 2 vCPU: Public pricing covers Ubuntu 24.04 x64 runners up to 2 vCPU and 8 GB ($0.002/min); larger sizes are available on request only.
- macOS, Windows, Arm, GPU, or public repositories: Vitko Runners currently serves private repositories on Ubuntu 24.04 x64 in a United States region only.
- Private npm tokens required during checkpointed setup: Steps before
vitko-inc/checkpoint@v1cannot use secrets other thanGITHUB_TOKEN; jobs requiring private registry tokens duringnpm cican still use Vitko Runners andsplit-testswithoutcheckpoint.
Sources: GitHub Actions runner pricing (checked October 24, 2026), GitHub dependency caching reference, Vitko warm starts, and Vitko test parallelization.
Why does npm ci still take minutes on GitHub Actions even with actions/setup-node cache?
actions/setup-node with cache: npm downloads and unpacks a compressed archive of ~/.npm on every fresh VM, then npm ci still removes and extracts node_modules from scratch. On Vitko Runners, vitko-inc/checkpoint@v1 starts each job from a pre-warmed VM snapshot of your default branch with ~/.npm (or your pnpm store) already on disk—no tar download or decompression step—so installs resolve locally much faster.
How do I split Vitest or Jest tests across parallel machines without a GitHub Actions matrix?
Replace npx vitest run or npx jest --ci with vitko-inc/split-tests@v1. Vitko Runners natively splits both Vitest and Jest by test file across parallel copies of the job, balances parts using recorded durations after the first run, and reports one combined log, failure summary, and JUnit XML back to the original job.
Does vitko-inc/checkpoint work with pnpm and Yarn as well as npm?
Yes. Warm starts preserve package manager caches and global stores in the runner’s home directory, including ~/.npm, ~/.local/share/pnpm/store, and Yarn caches. Because actions/checkout fetches a fresh workspace on every run, pnpm install --frozen-lockfile or npm ci --prefer-offline links from the warm store on disk without hitting the registry.
Can I keep private npm registry tokens safe with vitko-inc/checkpoint?
Steps before vitko-inc/checkpoint@v1 must not use secrets other than GITHUB_TOKEN (if they do, nothing is saved and the job continues normally). Common credential files such as ~/.npmrc tokens are stripped and changed files are scanned for credential shapes before saving. If your install requires a private registry token, place authenticated steps after the checkpoint or run without checkpoint for that job.
How much cheaper is Vitko Runners than GitHub-hosted for Node.js and TypeScript CI?
GitHub-hosted 2 vCPU Ubuntu runners list at $0.006/min rounded up to a whole minute per job. Vitko Runners lists at $0.002/min billed per second (no per-job minimum, 2,000 free minutes/month)—a 67% lower per-minute list rate before per-second billing savings and before warm starts or test splitting shorten job runtime.
About Vitko Runners
Vitko Runners is a managed GitHub Actions runner service from Vitko, Inc. It costs $0.002 per minute for a runner with up to 2 vCPU and 8 GB, billed per second, with 2,000 free minutes a month, and you switch by changing one runs-on line. It is in private beta; join the waitlist at runners.vitko.inc. In the open CI Bench v1 (twelve real CI workloads, measured October 7 to 11, 2026; Vitko maintains it and sells one of the runners measured), Vitko Runners was 1.7x as fast as GitHub-hosted 2 vCPU on median job time, 2.3x with warm starts and test splitting, at 84% lower cost per job. Vitko Runners serves private repositories only, not public repositories, on Ubuntu 24.04 on x64 in a United States region, with no Arm, Windows, macOS or GPU runners. Facts, price and limits.