From 3d991701d6cae7337d31681d073b762ed7a8be11 Mon Sep 17 00:00:00 2001 From: Paul Jolly Date: Tue, 26 Nov 2024 08:56:35 +0000 Subject: [PATCH] internal/ci: also cache $HOME/.npm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should help speed up things on the npm side of things in CI. Signed-off-by: Paul Jolly Change-Id: If555a86e7eaab91df5a61465b176eb4f5f23fa78 Reviewed-on: https://review.gerrithub.io/c/cue-lang/vscode-cue/+/1204649 TryBot-Result: CUEcueckoo Reviewed-by: Daniel Martí --- .github/workflows/trybot.yaml | 2 ++ internal/ci/github/trybot.cue | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/trybot.yaml b/.github/workflows/trybot.yaml index 33cbd4d..6e06b35 100644 --- a/.github/workflows/trybot.yaml +++ b/.github/workflows/trybot.yaml @@ -80,6 +80,7 @@ jobs: path: |- ${{ steps.go-mod-cache-dir.outputs.dir }}/cache/download ${{ steps.go-cache-dir.outputs.dir }} + ~/.npm key: ${{ runner.os }}-1.23.3-${{ github.run_id }} restore-keys: ${{ runner.os }}-1.23.3 - if: |- @@ -90,6 +91,7 @@ jobs: path: |- ${{ steps.go-mod-cache-dir.outputs.dir }}/cache/download ${{ steps.go-cache-dir.outputs.dir }} + ~/.npm key: ${{ runner.os }}-1.23.3-${{ github.run_id }} restore-keys: ${{ runner.os }}-1.23.3 - if: |- diff --git a/internal/ci/github/trybot.cue b/internal/ci/github/trybot.cue index 77c0208..c386eb4 100644 --- a/internal/ci/github/trybot.cue +++ b/internal/ci/github/trybot.cue @@ -46,6 +46,9 @@ workflows: trybot: _repo.bashWorkflow & { let _setupGoActionsCaches = _repo.setupGoActionsCaches & { #goVersion: goVersion #os: runnerOSVal + #additionalCacheDirs: [ + "~/.npm", + ] _ } let installGo = _repo.installGo & {