From c861a1d7968aef62fb93b39e9c88a6a71c21c9fb Mon Sep 17 00:00:00 2001 From: Teffen Ellis Date: Wed, 15 Sep 2021 12:20:43 -0400 Subject: [PATCH] Enable cache on vendor assets. --- .github/workflows/ci.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ba1c81b66..c22f4956a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -112,14 +112,16 @@ jobs: id: cache-yarn uses: actions/cache@v2 with: - path: "**/node_modules" - key: yarn-build-${{ hashFiles('**/yarn.lock') }} + path: | + "**/node_modules" + "**/vendor/modules" + "**/vendor/modules/code-oss-dev/node_modules" + key: yarn-build-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/vendor/yarn.lock') }} restore-keys: | yarn-build- - name: Install dependencies - # TODO@Teffen investigate why this never matches the cache. - # if: steps.cache-yarn.outputs.cache-hit != 'true' + if: steps.cache-yarn.outputs.cache-hit != 'true' run: yarn --frozen-lockfile - name: Build code-server