Skip to content

Commit

Permalink
internal/ci: also cache $HOME/.npm
Browse files Browse the repository at this point in the history
This should help speed up things on the npm side of things in CI.

Signed-off-by: Paul Jolly <[email protected]>
Change-Id: If555a86e7eaab91df5a61465b176eb4f5f23fa78
Reviewed-on: https://review.gerrithub.io/c/cue-lang/vscode-cue/+/1204649
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
  • Loading branch information
myitcv committed Nov 26, 2024
1 parent a287263 commit 3d99170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/trybot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand All @@ -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: |-
Expand Down
3 changes: 3 additions & 0 deletions internal/ci/github/trybot.cue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ workflows: trybot: _repo.bashWorkflow & {
let _setupGoActionsCaches = _repo.setupGoActionsCaches & {
#goVersion: goVersion
#os: runnerOSVal
#additionalCacheDirs: [
"~/.npm",
]
_
}
let installGo = _repo.installGo & {
Expand Down

0 comments on commit 3d99170

Please sign in to comment.