From a561ecf529a95a8b9f1860926e89b31daa1c88f4 Mon Sep 17 00:00:00 2001 From: Chris Arderne Date: Wed, 29 Jul 2026 10:59:05 +0100 Subject: [PATCH] perf(ci): cache typecheck work across runs --- .github/workflows/typecheck.yml | 10 +++++++++- turbo.json | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index d8521f3936a..950d5a5e981 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -23,11 +23,19 @@ jobs: version: 10.33.2 - name: ⎔ Setup node - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + uses: WarpBuilds/setup-node@bc639b444d583175926b588962199c247d23e8d3 # v6 with: node-version: 24.18.0 cache: "pnpm" + - name: Restore Turbo cache + uses: WarpBuilds/cache@40f3443ae7b70e568d6e2070ea897f3df94d7553 # v1 + with: + path: node_modules/.cache/turbo + key: turbo-typecheck-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }} + restore-keys: | + turbo-typecheck-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}- + - name: 📥 Download deps run: pnpm install --frozen-lockfile diff --git a/turbo.json b/turbo.json index c820d115376..bd6f8aca761 100644 --- a/turbo.json +++ b/turbo.json @@ -37,7 +37,8 @@ "cache": false }, "generate": { - "dependsOn": ["^generate"] + "dependsOn": ["^generate"], + "cache": false }, "docker:build": { "outputs": [],