Skip to content

Commit d4dafd8

Browse files
committed
Enable cache on vendor assets.
1 parent 699f78c commit d4dafd8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,16 @@ jobs:
112112
id: cache-yarn
113113
uses: actions/cache@v2
114114
with:
115-
path: "**/node_modules"
116-
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
115+
path: |
116+
"**/node_modules"
117+
"**/vendor/modules"
118+
"**/vendor/modules/code-oss-dev/node_modules"
119+
key: yarn-build-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/vendor/yarn.lock') }}
117120
restore-keys: |
118121
yarn-build-
119122
120123
- name: Install dependencies
121-
# TODO@Teffen investigate why this never matches the cache.
122-
# if: steps.cache-yarn.outputs.cache-hit != 'true'
124+
if: steps.cache-yarn.outputs.cache-hit != 'true'
123125
run: yarn --frozen-lockfile
124126

125127
- name: Build code-server

0 commit comments

Comments
 (0)