Skip to content

Commit d366690

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,15 @@ 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+
"**/vendor/modules"
117+
"**/node_modules"
118+
key: yarn-build-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/vendor/yarn.lock') }}
117119
restore-keys: |
118120
yarn-build-
119121
120122
- name: Install dependencies
121-
# TODO@Teffen investigate why this never matches the cache.
122-
# if: steps.cache-yarn.outputs.cache-hit != 'true'
123+
if: steps.cache-yarn.outputs.cache-hit != 'true'
123124
run: yarn --frozen-lockfile
124125

125126
- name: Build code-server

0 commit comments

Comments
 (0)