Skip to content

A platform for community discussion. Free, open, simple.

DEV: Limit re-use of bundler/yarn caches in CI (#24256)

David Taylorde8c8f1d28ac
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index a2687b807fc..baa96095260 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -80,8 +80,7 @@ jobs:
uses: actions/cache@v3
with:
path: vendor/bundle
- key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }}
- restore-keys: ${{ runner.os }}-${{ matrix.ruby }}-gem-
+ key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }}-cachev2
- name: Setup gems
run: |
@@ -101,8 +100,7 @@ jobs:
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: ${{ runner.os }}-yarn-
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-cachev2
- name: Yarn install
run: yarn install --frozen-lockfile
@@ -307,8 +305,7 @@ jobs:
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: ${{ runner.os }}-yarn-
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-cachev2
- name: Yarn install
working-directory: ./app/assets/javascripts/discourse